schumarg
Registered User.
- Local time
- Today, 06:44
- Joined
- May 13, 2003
- Messages
- 94
Hi,
I have a form with a subform in it. I want to double-click one the the fields in the subform (PurchaseOrd) and have a tblPurchaseOrder2 form open to that particular record so I can edit a value in the record. (The value in the subform that I want to edit is based on an expression from a query, so I have to go back to the main table and edit one of the P/O's invoices.)
I have a double-click event on the field in the subform to open the PurchaseOrder2 form, and it does without a "Where" clause, but if I put a "Where" clause, then it can't find the form.![Confused :confused: :confused:](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I've tried the following, but get suspect, I hope, that the syntax is not correct:
DoCmd.OpenForm "tblPurchaseOrder2", acNormal, , [Forms]![tblPurchaseOrder2]![PurchaseOrd] = [Forms]![tblPurchaseOrder subform]![PurchaseOrd]
Any suggestions would be greatly appreciated.
I have a form with a subform in it. I want to double-click one the the fields in the subform (PurchaseOrd) and have a tblPurchaseOrder2 form open to that particular record so I can edit a value in the record. (The value in the subform that I want to edit is based on an expression from a query, so I have to go back to the main table and edit one of the P/O's invoices.)
I have a double-click event on the field in the subform to open the PurchaseOrder2 form, and it does without a "Where" clause, but if I put a "Where" clause, then it can't find the form.
I've tried the following, but get suspect, I hope, that the syntax is not correct:
DoCmd.OpenForm "tblPurchaseOrder2", acNormal, , [Forms]![tblPurchaseOrder2]![PurchaseOrd] = [Forms]![tblPurchaseOrder subform]![PurchaseOrd]
Any suggestions would be greatly appreciated.