A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Establishing Relationships with ID numbers as foreign keys



 
 
Thread Tools Display Modes
  #1  
Old June 16th, 2004, 05:48 PM
lybargera
external usenet poster
 
Posts: n/a
Default Establishing Relationships with ID numbers as foreign keys

Hi, I am trying to establish relationships between tables
by using the ID numbers as the foreign key. For example
using the ActivityID as a foreign in the tblBusiness to
link tblActivity and tblBusiness. Access allows me to do
this, but the Activity ID is not automatically updating in
the tblBusiness, and I can't figure it out. I have tried
cascade update. I would appreciate any advice.
  #2  
Old June 16th, 2004, 05:54 PM
Lynn Trapp
external usenet poster
 
Posts: n/a
Default Establishing Relationships with ID numbers as foreign keys

Just what do you expect should be causing it to update? Are you doing data
entry via a form/subform? What you want will not happen in the tables
without some mechanism and a form/subform is the perfect mechanism for that.

--
Lynn Trapp
MS Access MVP
www.ltcomputerdesigns.com
Access Security: www.ltcomputerdesigns.com/Security.htm


"lybargera" wrote in message
...
Hi, I am trying to establish relationships between tables
by using the ID numbers as the foreign key. For example
using the ActivityID as a foreign in the tblBusiness to
link tblActivity and tblBusiness. Access allows me to do
this, but the Activity ID is not automatically updating in
the tblBusiness, and I can't figure it out. I have tried
cascade update. I would appreciate any advice.



  #3  
Old June 16th, 2004, 07:30 PM
John Vinson
external usenet poster
 
Posts: n/a
Default Establishing Relationships with ID numbers as foreign keys

On Wed, 16 Jun 2004 09:48:08 -0700, "lybargera"
wrote:

Hi, I am trying to establish relationships between tables
by using the ID numbers as the foreign key. For example
using the ActivityID as a foreign in the tblBusiness to
link tblActivity and tblBusiness. Access allows me to do
this, but the Activity ID is not automatically updating in
the tblBusiness, and I can't figure it out. I have tried
cascade update. I would appreciate any advice.


Relationships won't make anything automatically update, by themselves;
a relationship *restricts* what can go into the ActivityID field, it
doesn't put anything into the ActivityID field automagically.

If a business is linked to an activity, you need to specify *WHICH*
activity, say by selecting an ActivityID from a combo box on a form.

John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:05 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.