Hello all,
I am trying to build a simple search form which will allow a user to enter a product id, perform the search and then and open another form with product details but every time i try to run it i get the 2501 error and it does not open the form. The Product ID is 9-15 digits long. Here is my code any help would be appreciated.
Dim strWhere as String
strWhere = "[MyProduct] = " & ME.SearchProd
DoCmd.OpenForm "frmMyEditForm", acNormal, , strWhere
I am trying to build a simple search form which will allow a user to enter a product id, perform the search and then and open another form with product details but every time i try to run it i get the 2501 error and it does not open the form. The Product ID is 9-15 digits long. Here is my code any help would be appreciated.
Dim strWhere as String
strWhere = "[MyProduct] = " & ME.SearchProd
DoCmd.OpenForm "frmMyEditForm", acNormal, , strWhere