Hi,
An access form is created for the user to add records. My code to handle the input is that once "SAVE" command is pressed, I'll use a recordset and a ".AddNew" command followed a ".update" command to save the input into an ACCESS table - tblTutor, for example. (the key of the newly added record will be generated by ACCESS once .update is done)
The next step is that I need to insert into another table, tblProcessTNewAppt, for example, by SQL with this newly added record's key
My problem is how I can get the key from tblTutor.
Thanks in advance.
An access form is created for the user to add records. My code to handle the input is that once "SAVE" command is pressed, I'll use a recordset and a ".AddNew" command followed a ".update" command to save the input into an ACCESS table - tblTutor, for example. (the key of the newly added record will be generated by ACCESS once .update is done)
The next step is that I need to insert into another table, tblProcessTNewAppt, for example, by SQL with this newly added record's key
My problem is how I can get the key from tblTutor.
Thanks in advance.