Hello i'm using an query based search form in a navigation form.
But i'm getting stuck with searching with multiple keywords.
like i have 3 different search bars, where you can search very specific.
Product name:........
category:.......
compound:........
Code i'm using for only 1 keyword is:
Private Sub Command10_Click()
DoCmd.OpenForm "Product_DS", acNormal, , "[productname] Like '" & Me.txtproductname & "*'"
End Sub
And this works fine for just 1 search bar.
What kind of code do i need in order to use all 3 search bars and let it work?
I've tried like this for 2 search bars but I get error code 13....:
Private Sub Command10_Click()
DoCmd.OpenForm "Product_DS", acNormal, , (("[productname] Like '" & Me.txtproductname & "*'") Or ("[category] Like '" & Me.txtcategory & "*'"))
End Sub
I'm stuck:banghead:
Please help me out thanks
Note: i'm a beginner access user, and don't have knowledge about vba or codes
But i'm getting stuck with searching with multiple keywords.
like i have 3 different search bars, where you can search very specific.
Product name:........
category:.......
compound:........
Code i'm using for only 1 keyword is:
Private Sub Command10_Click()
DoCmd.OpenForm "Product_DS", acNormal, , "[productname] Like '" & Me.txtproductname & "*'"
End Sub
And this works fine for just 1 search bar.
What kind of code do i need in order to use all 3 search bars and let it work?
I've tried like this for 2 search bars but I get error code 13....:
Private Sub Command10_Click()
DoCmd.OpenForm "Product_DS", acNormal, , (("[productname] Like '" & Me.txtproductname & "*'") Or ("[category] Like '" & Me.txtcategory & "*'"))
End Sub
I'm stuck:banghead:
Please help me out thanks
Note: i'm a beginner access user, and don't have knowledge about vba or codes