Dennis,
Thanks for your awnser. What you assume is correct.
I'm in a form and I want to generate a report with the current record by
clicking a button. (this button is on an other tabpage)
However, I'm still having difficulties to get it work properly.
I have used your first line:
DoCmd.OpenReport "YourReportName", , , "UniqueID = " & Me.UniqueID
as my UniqueID (my name is BoekingsformulierID) is an autogenerated number.
If I have understand your e-mail correctly the line then then becomes;
DoCmd.OpenReport "Test rapport", , , "BoekingsformulierID = " &
Me.BoekingsformulierID
When I run this code it immediatly ask me to print it (this is not correct,
I want to do a visual ckeck before I print it)
After I agreed to print it, an inputbox appears where it askes for a
BoekingsformulierID number.
When I have inputed an exsisting BoekingsformulierID number it start to
print the whole range of the Dbase.
Do you know what I am doing wrong?
Arjan
The Netherlands