I'm getting the following run-time error with my form.
Run-time error '3075'
Syntax error (missing operators) in query expression 'Exceed Order No = 1000008270'.
Basically I've created two forms, one form contains a list called "results". When the user doubleclicks on a line in the list, it's suppose to open up another form and only only show the record that the user has selected. Below is my VB code and other relevant properties pertaining to it.
Here is the code:
Private Sub Results_DblClick(Cancel As Integer)
DoCmd.OpenForm FormName:="TimeSlot_frm", _
WhereCondition:="Exceed Order No = " & Me.Results
End Sub
Here are the form properties:
Form with the list:
Form Name = Lookup Orders
List Name = Results
Field used for link = POKey (1st field in list)
No of fields in list = 8
The linked form properties:
Field used for the link = Exceed Order No
Field type = textbox
Obviously, even though they're name differently, the POKey and the Exceed Order No are the same field.
One thing that I thought is that I would have to declare in the statement, what position the POKey field was in the list. Is this correct? or am I way off the mark.
Thanks, Tadynn.
Run-time error '3075'
Syntax error (missing operators) in query expression 'Exceed Order No = 1000008270'.
Basically I've created two forms, one form contains a list called "results". When the user doubleclicks on a line in the list, it's suppose to open up another form and only only show the record that the user has selected. Below is my VB code and other relevant properties pertaining to it.
Here is the code:
Private Sub Results_DblClick(Cancel As Integer)
DoCmd.OpenForm FormName:="TimeSlot_frm", _
WhereCondition:="Exceed Order No = " & Me.Results
End Sub
Here are the form properties:
Form with the list:
Form Name = Lookup Orders
List Name = Results
Field used for link = POKey (1st field in list)
No of fields in list = 8
The linked form properties:
Field used for the link = Exceed Order No
Field type = textbox
Obviously, even though they're name differently, the POKey and the Exceed Order No are the same field.
One thing that I thought is that I would have to declare in the statement, what position the POKey field was in the list. Is this correct? or am I way off the mark.
Thanks, Tadynn.