I'm trying to find a simple solution to an employees form / table.
the form is set to edited record, and record - locking in progress.
A user has to sign into the database.
I was thinking of Creating a field in the table,
LockedBy = text
Then hide a txtbox on the Employee form... As soon as the user does something to put the form into EDIT status???, I would like the (LockedBy) txtbox to contain The name from the logged in user taken from the switchboard form...
1) Where would I write this code - As soon as the form goes into edit status? (Placing user name in (LockedBy) txtbox)
2) I have an EDIT button which unlocks controls etc BUT I would like this to first check if txtBox is null or not, and CHECK if the record is in the EDIT status (what simple code checks that?)
I would then show a msgbox showing who is using the record
3) when I close the form, I would make the lockedBy field NULL, assuming i do that on the form UNload?
Thx For any help
Darin
the form is set to edited record, and record - locking in progress.
A user has to sign into the database.
I was thinking of Creating a field in the table,
LockedBy = text
Then hide a txtbox on the Employee form... As soon as the user does something to put the form into EDIT status???, I would like the (LockedBy) txtbox to contain The name from the logged in user taken from the switchboard form...
1) Where would I write this code - As soon as the form goes into edit status? (Placing user name in (LockedBy) txtbox)
2) I have an EDIT button which unlocks controls etc BUT I would like this to first check if txtBox is null or not, and CHECK if the record is in the EDIT status (what simple code checks that?)
I would then show a msgbox showing who is using the record
3) when I close the form, I would make the lockedBy field NULL, assuming i do that on the form UNload?
Thx For any help
Darin