L
LeAnn
I have an Access 2003 *.mde database with front end loaded on local PCs.
There are several tasks that I only want 1 person to perform at a time. I
set public variables and when a user clicks a task's button, it sets the
variable to TRUE. If the variable is TRUE when the next user clicks on it
exit the Sub. It isn't working. I've tried having users log onto a single
network copy and that didn't work either. I've tried setting text boxes to
a value and evaluate that but nothing is working. I'm sure this is something
simple that I'm overlooking. Any help would be appreciated.
Here a snippet of my code........
Sub ImportInventory
On Error GoTo ErrorHandler
If bolImportLOC = True Then
MsgBox "Someone else is performing this task, please wait.",
vbOKOnly + vbCritical, "Alert"
Exit Sub
End If
bolImportLOC = True
ImportInventoryLocations "City"
Exit_Sub:
bolImportLOC = False
Exit Sub
ErrorHandler:
MsgBox "Error #" & Err.Number & " - Description: " &
Err.Description, vbOKOnly + vbExclamation, "Error"
GoTo Exit_Sub
Thanks
LeAnn
There are several tasks that I only want 1 person to perform at a time. I
set public variables and when a user clicks a task's button, it sets the
variable to TRUE. If the variable is TRUE when the next user clicks on it
exit the Sub. It isn't working. I've tried having users log onto a single
network copy and that didn't work either. I've tried setting text boxes to
a value and evaluate that but nothing is working. I'm sure this is something
simple that I'm overlooking. Any help would be appreciated.
Here a snippet of my code........
Sub ImportInventory
On Error GoTo ErrorHandler
If bolImportLOC = True Then
MsgBox "Someone else is performing this task, please wait.",
vbOKOnly + vbCritical, "Alert"
Exit Sub
End If
bolImportLOC = True
ImportInventoryLocations "City"
Exit_Sub:
bolImportLOC = False
Exit Sub
ErrorHandler:
MsgBox "Error #" & Err.Number & " - Description: " &
Err.Description, vbOKOnly + vbExclamation, "Error"
GoTo Exit_Sub
Thanks
LeAnn