Report for an individual record

smeagain

Registered User.
Local time
Today, 05:20
Joined
Jan 5, 2011
Messages
26
Hi, Following my previous post, I would like to ask can I create a report for an individual record in a table rather than for the whole table iself.
 
Hi thanks, that sounds exactly like what I want but I am no good with programing and would not know where to add it and what to alter.
 
Hi thanks, that sounds exactly like what I want but I am no good with programing and would not know where to add it and what to alter.

please look at the help article on "docmd.openform". look that up and check out the arguments. the "openreport" method of the 'docmd' command has almost the same syntax, if not exactly the same.

Remember if you do look at the article, that optional arguments for the method begin when you see the first bracket ([) in the complete syntax at the top of the article. Everything between the two brackets ([]) are optional arguments.
 
It would look like

DoCmd.OpenReport "ReportName", acViewPreview, , "FieldName = " & Me.ControlName

adjusting as required by the data type. The place would be the event you want to call the report from, often the click event of a button.
 

Users who are viewing this thread

Back
Top Bottom