I'm pointing an Access 97 app to an SQL Server backend. Connections are of course ODBC. Since people will want to see the code I'll post it:
I placed the line of code in a new form, closed Access, opened again, relinked tables, and ran. No error is produced but the row does not appear in the table. If I open the table, scroll to the bottom, and insert manually, the row is created. I'm able to insert rows in other tables similar to the above without issue. This is a really weird deal. The SQL Server on my desktop is 2008 R2, but the server the production database will be added to is 2000. Help would be appreciated.
Code:
Dim IntakeKey&, InCase$[FONT=monospace]
[/FONT]IntakeKey = 3409[FONT=monospace]
[/FONT]InCase = "1311-059"[FONT=monospace]
[/FONT]CurrentDb.Execute "INSERT INTO Intake (InUnique,InCase) VALUES (" & IntakeKey & ",""" & InCase & """);"
I placed the line of code in a new form, closed Access, opened again, relinked tables, and ran. No error is produced but the row does not appear in the table. If I open the table, scroll to the bottom, and insert manually, the row is created. I'm able to insert rows in other tables similar to the above without issue. This is a really weird deal. The SQL Server on my desktop is 2008 R2, but the server the production database will be added to is 2000. Help would be appreciated.