F
Fahad
Dear
I have form (its name is frmproduct) containing the following records (the
resource record is Products table):
Barcode ----> primary key
itemName ----> Memo
ItemNo ----> Number
the primary key (barcode) has this format X10-1234
I creaded a parameter query (its name is FindProduct) to search on the
itemname. if I run this query, it will give me a pop up box asking to enter
any part of the item name. the query works fine.
I created a new form (its name is frmFindProduct) based on this query, when
i open this form it'll give me a pop up box asking to enter any part of the
item name. and i get the needed result. on this form I created a command
button, when i click it, it should open the main form (frmProduct) to see
more details about the product.
the following code has been embeded on this button, when i click it:
Private Sub cmdProductRecDetail_Click()
' Open the details for the selected record on the related form
DoCmd.OpenForm "frm_product", wherecondition:="barcode = " & Me.BarCode
End Sub
when I click the button to see more detail, it give me a pop up box asking
me to enter the remaining part of the barcode (primar Key). (i.e. the part
after X10).
could you please help me to solve this issue?
I have form (its name is frmproduct) containing the following records (the
resource record is Products table):
Barcode ----> primary key
itemName ----> Memo
ItemNo ----> Number
the primary key (barcode) has this format X10-1234
I creaded a parameter query (its name is FindProduct) to search on the
itemname. if I run this query, it will give me a pop up box asking to enter
any part of the item name. the query works fine.
I created a new form (its name is frmFindProduct) based on this query, when
i open this form it'll give me a pop up box asking to enter any part of the
item name. and i get the needed result. on this form I created a command
button, when i click it, it should open the main form (frmProduct) to see
more details about the product.
the following code has been embeded on this button, when i click it:
Private Sub cmdProductRecDetail_Click()
' Open the details for the selected record on the related form
DoCmd.OpenForm "frm_product", wherecondition:="barcode = " & Me.BarCode
End Sub
when I click the button to see more detail, it give me a pop up box asking
me to enter the remaining part of the barcode (primar Key). (i.e. the part
after X10).
could you please help me to solve this issue?