Hello,
I am using Access 2007. There are multiple tabs on the Main page
Tab 1, has a subform where "Table A" data is to be displayed.
Tab 2, has a subform where "Table B" data is displayed
Tab 3, I have a button which executes these commands
DoCmd.RunSQL ("DELETE * FROM Table A")
DoCmd.OpenQuery "Query 1"
Query 1 selects data from Table B and inserts into table A
At the line "DoCmd.OpenQuery "Query 1" error is thrown as
Run-time error '3211':
"Database engine could not lock Table A because its already in use by another person or process"
Tried closing the DB and opening but still no avail.
Any suggestions is much appreciated.
Thanks
I am using Access 2007. There are multiple tabs on the Main page
Tab 1, has a subform where "Table A" data is to be displayed.
Tab 2, has a subform where "Table B" data is displayed
Tab 3, I have a button which executes these commands
DoCmd.RunSQL ("DELETE * FROM Table A")
DoCmd.OpenQuery "Query 1"
Query 1 selects data from Table B and inserts into table A
At the line "DoCmd.OpenQuery "Query 1" error is thrown as
Run-time error '3211':
"Database engine could not lock Table A because its already in use by another person or process"
Tried closing the DB and opening but still no avail.
Any suggestions is much appreciated.
Thanks