Spelthorne1
Registered User.
- Local time
- Today, 18:55
- Joined
- Feb 17, 2004
- Messages
- 20
I have a table with a yes/no value for Bob, Sue and Geoff (as these are the only users for the db.
If Bob enters data i want his column in the table to say yes (-1).
So to automate this process i have them find their name on a list box on a form, which then loads up the data entry form i created and places their name in a text box on the form ([userid]).
I have 3 chkboxes one for each name with the control source linked to the appropriate column. On the afterinsert() I have:
Select Case userid
Case "Bob": chkbob = -1
Case "Sue": chksue = -1
Case "Geoff": chgef = -1
End Select
But when Bob trys to enter a new record the debugger appears with the chkbob = -1 statement above highlighted in yellow. The only way he can continue is if Geoff closes his form down and reopens it.
This problem is managable but gets irritating .
Does anyone know how i can get round this? Ive used If statements and combo boxes but to no avail. If all else fails i will remove the automation, but i would like a solution somehow. Thanks.
If Bob enters data i want his column in the table to say yes (-1).
So to automate this process i have them find their name on a list box on a form, which then loads up the data entry form i created and places their name in a text box on the form ([userid]).
I have 3 chkboxes one for each name with the control source linked to the appropriate column. On the afterinsert() I have:
Select Case userid
Case "Bob": chkbob = -1
Case "Sue": chksue = -1
Case "Geoff": chgef = -1
End Select
But when Bob trys to enter a new record the debugger appears with the chkbob = -1 statement above highlighted in yellow. The only way he can continue is if Geoff closes his form down and reopens it.
This problem is managable but gets irritating .
Does anyone know how i can get round this? Ive used If statements and combo boxes but to no avail. If all else fails i will remove the automation, but i would like a solution somehow. Thanks.