Hi there,
I used the following code which worked well when my database was Access based, I've moved it to an SQL Server backend and I get an "incorrect syntax error".
DoCmd.RunSQL "INSERT INTO [tblUniqueKey] ([Unique ID Ref]) values [Unique Ref ID]"
The problem seems to be the [Unique Ref ID] at the end. I've tried moving this outside of the speech marks etc. but still no joy.
Can anyone help please?
I used the following code which worked well when my database was Access based, I've moved it to an SQL Server backend and I get an "incorrect syntax error".
DoCmd.RunSQL "INSERT INTO [tblUniqueKey] ([Unique ID Ref]) values [Unique Ref ID]"
The problem seems to be the [Unique Ref ID] at the end. I've tried moving this outside of the speech marks etc. but still no joy.
Can anyone help please?