I've a query which the user needs to select a button for the location (GDC or Others) in the interactive form :
When GDC button is clicked,
Private Sub GDC_Click()
Me!location = "Like " & Chr(34) & "*GDC*" & Chr(34)
DoCmd.OpenQuery "queryname"
End Sub
When Others button is clicked,
Private Sub Others_Click()
Me!location = "Not Like " & Chr(34) & "*GDC*" & Chr(34)
DoCmd.OpenQuery "queryname"
End Sub
Query
But the query not working. Please help.
![]()