cityofdowney
New member
- Local time
- Today, 14:56
- Joined
- Dec 20, 2007
- Messages
- 6
How do you pass a primary key to an append query from a subform?
Example:
Main form – Table Subscriber (subscriber-id – primary key)
Linked (subscriber-id (main form) = ot-subscriber-id (subform))
One to many
Sub form - Other residents (ot-othres-id – primary key)
From sub form append history record using primary key by query
With in query criteria – [forms]![other residents subform]![ot-othres-id]
Does not work – The primary key isn’t being passed which shows in the subform. Pop up box appears.
Example:
Main form – Table Subscriber (subscriber-id – primary key)
Linked (subscriber-id (main form) = ot-subscriber-id (subform))
One to many
Sub form - Other residents (ot-othres-id – primary key)
From sub form append history record using primary key by query
With in query criteria – [forms]![other residents subform]![ot-othres-id]
Does not work – The primary key isn’t being passed which shows in the subform. Pop up box appears.