Hi,
I have a form where I put in a print command button using the wizard. It calls a report to print . The problem is that each and every record gets printed instead of just the current record.
What lines of code do I insert to limit the printing of reports to only the current record?
P.S. I had read somewhere in this forum where you use the following line:
DoCmd.OpenReport "", , , "Reçu # =" & Field "
I checked the datatable to look for a unique field. I found one called "receipt #". When I tried the line of code I ran into a problem because of the character #.
Gerr
I have a form where I put in a print command button using the wizard. It calls a report to print . The problem is that each and every record gets printed instead of just the current record.
What lines of code do I insert to limit the printing of reports to only the current record?
P.S. I had read somewhere in this forum where you use the following line:
DoCmd.OpenReport "", , , "Reçu # =" & Field "
I checked the datatable to look for a unique field. I found one called "receipt #". When I tried the line of code I ran into a problem because of the character #.
Gerr