I've recently converted old ADO rs.open action queries (INSERT INTO and UPDATE) into ADO.execute ,,129 ones. Now my MS Access 2003 application is frequently closing down. Any ideas how to prevent this? The first time the program runs (including about 10 30 action queries) it works fine. Run it again and it shuts the application down. If I close MS Access and rerun the application all works fine until I run the procedure for the 2nd time in this session.
Steve
O/S Win XP, 768 RAM, Processor: 2.7Mz, No other apps running. Please help!
I open the connection prior to running these queries then close the connection after the last run runs. Code Sample:
CurrentProject.Connection.Execute "INSERT INTO PRRTRANS ([reference], mdate,[name],empcode,[date]) Values ('" & Nextone & "', #" & Now() & "#, '" & Trim(rsPRCheck.Fields("name").VALUE) & "', '" & rsPRCheck.Fields("empcode").VALUE & "', #" & prDate & "#)", , 129
Steve
O/S Win XP, 768 RAM, Processor: 2.7Mz, No other apps running. Please help!
I open the connection prior to running these queries then close the connection after the last run runs. Code Sample:
CurrentProject.Connection.Execute "INSERT INTO PRRTRANS ([reference], mdate,[name],empcode,[date]) Values ('" & Nextone & "', #" & Now() & "#, '" & Trim(rsPRCheck.Fields("name").VALUE) & "', '" & rsPRCheck.Fields("empcode").VALUE & "', #" & prDate & "#)", , 129