S
Scott
I have a form that collects data that then is put into a table (using
DoCmd.RunSQL and an Insert Into SQL string) if the user decides they want to
save the record. The RecordID is an autonumber. In addition to the
information on the main record, they are putting information that needs to go
into a related table. I can't do the SQL string for the records that are in
the related table until I know the recordID of the record that was just
created. Can someone suggest a good way to get that ID (the ideas I have
seem somewhat convoluted - I'm sure there are easier ways than the ways I am
considering)?
DoCmd.RunSQL and an Insert Into SQL string) if the user decides they want to
save the record. The RecordID is an autonumber. In addition to the
information on the main record, they are putting information that needs to go
into a related table. I can't do the SQL string for the records that are in
the related table until I know the recordID of the record that was just
created. Can someone suggest a good way to get that ID (the ideas I have
seem somewhat convoluted - I'm sure there are easier ways than the ways I am
considering)?