Hello all;
I posted this in an Access forum but didn't really get anything useful so I thought I would post it here too. I appreciate any suggestions or ideas because I am fresh out.
I have an access database that I use VB to connect to for a clock in/out program. There are 7 computers that log in/out times and 6 of them are used heavily pretty much at the same time.
I am using ADO to access the database. I get the an error that says: "could not update; currently locked". I know that the error happens on both DELETE and INSERT statements.
The logic of the program is this:
User chooses In or Out
User Enters their employee number
If "In" then check to see if they are already in
If they are clocked in then display message
Else OK
Else
OK
User is asked if they are sure
If the user is sure then Clock In/Out
If Out then delete from "ClockedIn" table
Else Add to "ClockedIn" table
Display main screen again
I am getting the error in the part where they delete from or insert into the ClockedIn table. It doesn't happen consistantly whatsoever. I am stumped. Does anyone have any ideas of why or how this is happening and what I can do to fix it?
I posted this in an Access forum but didn't really get anything useful so I thought I would post it here too. I appreciate any suggestions or ideas because I am fresh out.
I have an access database that I use VB to connect to for a clock in/out program. There are 7 computers that log in/out times and 6 of them are used heavily pretty much at the same time.
I am using ADO to access the database. I get the an error that says: "could not update; currently locked". I know that the error happens on both DELETE and INSERT statements.
The logic of the program is this:
User chooses In or Out
User Enters their employee number
If "In" then check to see if they are already in
If they are clocked in then display message
Else OK
Else
OK
User is asked if they are sure
If the user is sure then Clock In/Out
If Out then delete from "ClockedIn" table
Else Add to "ClockedIn" table
Display main screen again
I am getting the error in the part where they delete from or insert into the ClockedIn table. It doesn't happen consistantly whatsoever. I am stumped. Does anyone have any ideas of why or how this is happening and what I can do to fix it?