How to update number field in "many" table from autonumber field in "one" table
I solve this problem a long time ago - I can't remember how I did it though!
For example
Table 1
Main ID (autonumber)
field1
field2
field3
Table 2
MainID
HabitatID
Table 3
Habitat ID
field4
field5
field6
What I want to be able to do in my form:
User enters records in table 1. Autonumber is assigned, say '5'. User enteres records in table 3. How do I ensure the records the user has entered in table 1 and 2 are linked?
How can I make the MainID in table 2 the same the MainID in table 1?
What is should look like after user has entered all there records
Table 1
Main ID (autonumber) =5
field1
field2
field3
Table 2
MainID =5
HabitatID =19
Table 3
Habitat ID (autonumber) = 19
field4
field5
field6
How can I do this? Help!
I solve this problem a long time ago - I can't remember how I did it though!
For example
Table 1
Main ID (autonumber)
field1
field2
field3
Table 2
MainID
HabitatID
Table 3
Habitat ID
field4
field5
field6
What I want to be able to do in my form:
User enters records in table 1. Autonumber is assigned, say '5'. User enteres records in table 3. How do I ensure the records the user has entered in table 1 and 2 are linked?
How can I make the MainID in table 2 the same the MainID in table 1?
What is should look like after user has entered all there records
Table 1
Main ID (autonumber) =5
field1
field2
field3
Table 2
MainID =5
HabitatID =19
Table 3
Habitat ID (autonumber) = 19
field4
field5
field6
How can I do this? Help!