One of the processes I have in my old Access ADP project was working with temp tables. How would I do something like this in my VBA code using ODBC to my SQL server?
IF OBJECT_ID('tempdb..#TmpActive" & AuditID & "') IS NOT NULL DROP TABLE #TmpActive" & AuditID
The process looks to see if there is already a temp table called TmpActive(with the user ID appended to it). If it exists, it drops it.
I can't use the access docmd of .runSQL. Nor can I use a DAO recordset. Any clues?
Thanks