Quote:
Originally Posted by gophbeav
Hi there,
...After entering the details of the new person I need to save the record and then requery the whole form but leaving focus where it is. The main form then populates with the participants Study Number, date of birth and name...
...code will save and keep focus for existing records, but doesn't work for new records as the Main form doesn't yet have a Study Number for the participant.
|
Two problems here:
First off, you appear to be entering a
Child Record before the
Parent Record exists.
Secondly, you're apparently committing
multiple Fields to
multiple Tables, a huge no no in Access!
Data for an individual, such as
Study Number, date of birth and name, would normally be stored in the
Table that the
Main Form is based on, and in any dependent
Tables only the
unique identifier, which I'm assuming in this case is
Study Number, would be stored.
Linq
;0)>