theinviter
Registered User.
- Local time
- Today, 09:44
- Joined
- Aug 14, 2014
- Messages
- 240
Hi
i need a help;
i am having a form linked to subform.
so i want to make a new multiple search form to to filter and display the information base on my selection in dropbox.
i tried this:
Private Sub mlocation_AfterUpdate()
Dim my_ck As String
my_ck = " select * from [Dispensing 2] where ([Drug name]= " & Me.mlocation & " )"
Me.Dispensing__2_Subform.Form.RecordSource = my_ck
Me.Dispensing__2_Subform.Form.Requery
End Sub
but got this error message:
Syntax Error ( missing operation) in query expression ([Drug name]= " & Me.mlocation & " )"
then this field get highlighted yellow:
Me.Dispensing__2_Subform.Form.RecordSource = my_ck
so what is the solution please.
i need a help;
i am having a form linked to subform.
so i want to make a new multiple search form to to filter and display the information base on my selection in dropbox.
i tried this:
Private Sub mlocation_AfterUpdate()
Dim my_ck As String
my_ck = " select * from [Dispensing 2] where ([Drug name]= " & Me.mlocation & " )"
Me.Dispensing__2_Subform.Form.RecordSource = my_ck
Me.Dispensing__2_Subform.Form.Requery
End Sub
but got this error message:
Syntax Error ( missing operation) in query expression ([Drug name]= " & Me.mlocation & " )"
then this field get highlighted yellow:
Me.Dispensing__2_Subform.Form.RecordSource = my_ck
so what is the solution please.