- Joined
- Oct 21, 2008
- Messages
- 4
- Reaction score
- 0
Greetings -
Once upon a time, a decade or so ago, I was MS-certified in Access.
Haven't used it in a while, and now I need to.
I have a subform which contains a list of records related to the record displayed
in the parent form. Also on the subform is a comboBox providing the user with
a list of records available for association with the parent.
I can write the VBA needed to read the pkID of the parent record, as well
as the pkID of the record to be associated.
I'd like to take these two known values and insert them as a new record in the junction/intersection table that links the parent & children on these forms.
Can anyone remind me (or point me to a decent example) of the necessary syntax to insert a record into a table, vConcordance, specifying the necessary data?
Don't know if it's more straightforward to write & execute the SQL and execute that statement, or open the (database object and?) table object and add the record that way.
All help welcome.
Thanks kindly.
- Richard
Once upon a time, a decade or so ago, I was MS-certified in Access.
Haven't used it in a while, and now I need to.
I have a subform which contains a list of records related to the record displayed
in the parent form. Also on the subform is a comboBox providing the user with
a list of records available for association with the parent.
I can write the VBA needed to read the pkID of the parent record, as well
as the pkID of the record to be associated.
I'd like to take these two known values and insert them as a new record in the junction/intersection table that links the parent & children on these forms.
Can anyone remind me (or point me to a decent example) of the necessary syntax to insert a record into a table, vConcordance, specifying the necessary data?
Don't know if it's more straightforward to write & execute the SQL and execute that statement, or open the (database object and?) table object and add the record that way.
All help welcome.
Thanks kindly.
- Richard