Hi,
Currently replacing our BE with SQL Server 2008 and accessing using Access 2010 FE.
Tables linked via ODBC and all database opens are done using DAO (was originally an Access 97 database).
Run into an annoying problem, would seem a lot of code retrieves the index of the current record being added for further use, now I am adding records in to SQL this isn't working.
The only was I can do this right now is something along the lines of
Not a great way of doing things I know!
I know the answer is to rewrite using SQL Inserts or ADODB but this is further down the line, all tables are shared through multiple apps and each one needs to 'work' before we can go live with any of it :banghead:
Is there a more reliable way I can achieve this in the short term?
Thanks!
Currently replacing our BE with SQL Server 2008 and accessing using Access 2010 FE.
Tables linked via ODBC and all database opens are done using DAO (was originally an Access 97 database).
Run into an annoying problem, would seem a lot of code retrieves the index of the current record being added for further use, now I am adding records in to SQL this isn't working.
The only was I can do this right now is something along the lines of
Code:
.AddNew
!Field1
!Field2
.Update
.MoveLast
MyVariable = !Index
Not a great way of doing things I know!
I know the answer is to rewrite using SQL Inserts or ADODB but this is further down the line, all tables are shared through multiple apps and each one needs to 'work' before we can go live with any of it :banghead:
Is there a more reliable way I can achieve this in the short term?
Thanks!