FreonIceMan
Registered User.
- Local time
- Today, 14:25
- Joined
- May 31, 2011
- Messages
- 19
I have a database I am working on. When I am on my one form it has a report that shows a summary of different orders for a single customer. When I click on one of the summaries I want it to open the full detailed report based on which line in the report was clicked. How would I go about getting this to work?
Below is the code I attempted to use. I keeps prompting me for which record to open.
Below is the code I attempted to use. I keeps prompting me for which record to open.
Code:
Private Sub Detail_Click()
[INDENT] TempVars.Add "tmIns_ID", txtPT_Ins_ID
[/INDENT][INDENT] DoCmd.OpenReport "Order_Details", acViewReport, "", "[Reports]![Order_Details]![Order_ID]=[TempVars]![txtOrder_ID]", acNormal
[/INDENT]
End Sub
Last edited: