June7
AWF VIP
- Local time
- Yesterday, 19:11
- Joined
- Mar 9, 2014
- Messages
- 5,490
Okay, that may have been me again misunderstanding question. One thing can do is build form/subform arrangement.
Main form bound to Courses, subform bound to local table. Set the subform container Master/Child Links properties. Start to enter data into subform and the foreign key field(s) should automatically populate with the key(s) of main form record. Either don't show the foreign key(s) in the subform or lock textbox(es) so users cannot edit.
Since what you have is a 1-to-1 relationship, might be possible to use a single form that has a query joining Courses and local tables as RecordSource. I have not tried this in a while and don't remember if it works. I will have to try again.
Okay, just confirmed, the query results in a non-editable dataset because there is no defined primary key. It does work with two local tables where one has a defined primary key.
Main form bound to Courses, subform bound to local table. Set the subform container Master/Child Links properties. Start to enter data into subform and the foreign key field(s) should automatically populate with the key(s) of main form record. Either don't show the foreign key(s) in the subform or lock textbox(es) so users cannot edit.
Since what you have is a 1-to-1 relationship, might be possible to use a single form that has a query joining Courses and local tables as RecordSource. I have not tried this in a while and don't remember if it works. I will have to try again.
Okay, just confirmed, the query results in a non-editable dataset because there is no defined primary key. It does work with two local tables where one has a defined primary key.
Last edited: