ST4RCUTTER
Registered User.
- Local time
- Today, 02:50
- Joined
- Aug 31, 2006
- Messages
- 94
This should be very easy but I'm goofing it up somewhere. I am performing a simple Dlookup on a table where the value of a combo box is compared to the primary key field.
Dim xTimer As Boolean
xTimer = DLookup("Timer", "tbl_ref_assignment", "Me.AssignmentType = AssignmentID")
In this case Timer is a boolean field.
Me.AssignmentType is a combo box which contains a numeric integer value
AssignmentID is a primary key which is also a numeric integer
I need to find the "Timer" value which is either True or False for the record that matches the value in Me.AssignmentType but I keep getting a:
"Run-time error '2001': You cancelled the previous operation."
I've tried formatting the criteria in a number of ways but nothing works.
Dim xTimer As Boolean
xTimer = DLookup("Timer", "tbl_ref_assignment", "Me.AssignmentType = AssignmentID")
In this case Timer is a boolean field.
Me.AssignmentType is a combo box which contains a numeric integer value
AssignmentID is a primary key which is also a numeric integer
I need to find the "Timer" value which is either True or False for the record that matches the value in Me.AssignmentType but I keep getting a:
"Run-time error '2001': You cancelled the previous operation."
I've tried formatting the criteria in a number of ways but nothing works.
Last edited: