Hi I have done a search but did not see or recognise what I am looking for.
I have created a recordset of client addresses using a query. I now want to use this recordset to print labels.
I can build a label sheet using the label wizard on some dummy table and call it "labelTestReport". I want to call this report from with in my code and feed it with my preselected recordset. It has all the necessary fields.
I assume you use something like
DoCmd.OpenReport "labelTestReport",acViewPreview --- etc
where you can pass in the recordset.
What is the structure of the call or am I way off in the wrong direction?
Thanks for any help
I have created a recordset of client addresses using a query. I now want to use this recordset to print labels.
I can build a label sheet using the label wizard on some dummy table and call it "labelTestReport". I want to call this report from with in my code and feed it with my preselected recordset. It has all the necessary fields.
I assume you use something like
DoCmd.OpenReport "labelTestReport",acViewPreview --- etc
where you can pass in the recordset.
What is the structure of the call or am I way off in the wrong direction?
Thanks for any help