Newbie alert. 
Q#1. I used code from here
to automate the process for users to add new items to lookup tables. It worked fine (for a day) until I put the database into SQL and the tables are all linked to the SQL datasource.
Here is the exact error that I get when I input something that's not in the list...
*******
Run-time error '3622':
You must use the dbSeeChanges option with OpenRecordSet when accessing a SQL Server table that has an IDENTITY column.
*******
When I click the Debug button it takes me to the VB window and highlights this row...
The whole code can be seen at the link I provided before and I did not make any modifications except to change the correspondig table names etc...
Q#2. Also, I added a line that calls up the form to edit the entry in the lookup table, right after the code that I talked about before because for example the Employee name is added to the lookup table but none of the other information is updated, ie phone, department, location. This is the code.
Which I stole from another database so I have no idea of why "GoToLast" does but I would hope it makes the just opened form go to the last record. It doesn't work. How do I make the form go to the last record which has the just added employee name?
Thanks for the help in advance.
Q#1. I used code from here
to automate the process for users to add new items to lookup tables. It worked fine (for a day) until I put the database into SQL and the tables are all linked to the SQL datasource.
Here is the exact error that I get when I input something that's not in the list...
*******
Run-time error '3622':
You must use the dbSeeChanges option with OpenRecordSet when accessing a SQL Server table that has an IDENTITY column.
*******
When I click the Debug button it takes me to the VB window and highlights this row...
Code:
Set rstKeyWord = dbsVBA.OpenRecordset("LU_EMPLOYEES")
The whole code can be seen at the link I provided before and I did not make any modifications except to change the correspondig table names etc...
Q#2. Also, I added a line that calls up the form to edit the entry in the lookup table, right after the code that I talked about before because for example the Employee name is added to the lookup table but none of the other information is updated, ie phone, department, location. This is the code.
Code:
DoCmd.OpenForm "LU_EMPLOYEES", acNormal, , , , acDialog, "GotoLast"
Which I stole from another database so I have no idea of why "GoToLast" does but I would hope it makes the just opened form go to the last record. It doesn't work. How do I make the form go to the last record which has the just added employee name?
Thanks for the help in advance.