fireman_gcfd
Registered User.
- Local time
- Today, 01:50
- Joined
- Aug 14, 2007
- Messages
- 25
Hello all
I am attempting to fill a report with the current data inputted on my form. I want just a single record selection so when the user finishes inputting their details they can generate a single report for printing. In browsing the forums I have come across many codes which open the report just fine but with No fields filled in. The report is a carbon copy of what the form is and all fields (lots of them) need to be filled in. Am I missing a line of code? Should I be using a SelectRecord line somewhere in there? Here is what I have right now:
Private Sub Command303_Click()
DoCmd.OpenReport "HorizonResponseReport", acViewPreview, , "Incident = " & "Forms![HorizonResponse]![Incident]"
End Sub
The Form name is "HorizonResponse"
The Report name is "HorizonResponseReport"
"Incident" would be the unique seperator between all reports.
hope to hear from you soon
Jaz
I am attempting to fill a report with the current data inputted on my form. I want just a single record selection so when the user finishes inputting their details they can generate a single report for printing. In browsing the forums I have come across many codes which open the report just fine but with No fields filled in. The report is a carbon copy of what the form is and all fields (lots of them) need to be filled in. Am I missing a line of code? Should I be using a SelectRecord line somewhere in there? Here is what I have right now:
Private Sub Command303_Click()
DoCmd.OpenReport "HorizonResponseReport", acViewPreview, , "Incident = " & "Forms![HorizonResponse]![Incident]"
End Sub
The Form name is "HorizonResponse"
The Report name is "HorizonResponseReport"
"Incident" would be the unique seperator between all reports.
hope to hear from you soon
Jaz