Table Locked message

Status
Not open for further replies.

Tupacmoche

Registered User.
Local time
Today, 00:10
Joined
Apr 28, 2008
Messages
291
I need direction in VBA code on how to check if a the data source for a Form is locked or not. Then, I can either continue with a process and lock down the table or open a msgbox and tell the user to try later table in use.:banghead:

Here is my pseudo-code :

If [Buyback Template t].RecordLocks = 1
Then
Msgbox( This function is not available at this time. Try again later)
Exit
Else
Forms(“Buyback f”).RecordLocks = 1
 
I need direction in VBA code on how to check if a the data source for a Form is locked or not. Then, I can either continue with a process and lock down the table or open a msgbox and tell the user to try later table in use.:banghead:

Here is my pseudo-code :

If [Buyback Template t].RecordLocks = 1
Then
Msgbox( This function is not available at this time. Try again later)
Exit
Else
Forms(“Buyback f”).RecordLocks = 1

Table or controls on form?
 
It would probably help if you tell us, in plain language, your underlying business need, here! In a properly designed db it is seldom necessary to Lock a Table.

Linq ;0)>
 
Status
Not open for further replies.

Users who are viewing this thread

Back
Top Bottom