Hello,
I'm using Access 2003. I'm using the dlast command to find the last value in a table, which works. I'm storing it a variable. What is the proper syntax to then insert that variable into a different table?
Currently I have
strSQLApp2 = "INSERT INTO Courses (....Training_ID) VALUES (....'& strLastValue &')"
It all works except the strLastValue. A msg box shows '& strLastValue &'
thanks in advance
I'm using Access 2003. I'm using the dlast command to find the last value in a table, which works. I'm storing it a variable. What is the proper syntax to then insert that variable into a different table?
Currently I have
strSQLApp2 = "INSERT INTO Courses (....Training_ID) VALUES (....'& strLastValue &')"
It all works except the strLastValue. A msg box shows '& strLastValue &'
thanks in advance