C
Chris1
Hi,
I want to be able to print preview the report of mu
current record on my form. I have created a button and
entered the following code on its OnClick event:
Private Sub Command74_Click()
DoCmd.OpenReport "Complaint & Investigation",
acViewPreview, , "[ComplaintNumberID]= " &
[ComplaintNumberID]
End Sub
The problem is that when I press the button, the report
shows up but it is blank. I have to use the record
navigation buttons on the form back and forth once, press
the report button again in order to see the current data
on report.
Is there any way I can avoid this problem and see the data
straight away?
Any help much appreciated.
Chris.
I want to be able to print preview the report of mu
current record on my form. I have created a button and
entered the following code on its OnClick event:
Private Sub Command74_Click()
DoCmd.OpenReport "Complaint & Investigation",
acViewPreview, , "[ComplaintNumberID]= " &
[ComplaintNumberID]
End Sub
The problem is that when I press the button, the report
shows up but it is blank. I have to use the record
navigation buttons on the form back and forth once, press
the report button again in order to see the current data
on report.
Is there any way I can avoid this problem and see the data
straight away?
Any help much appreciated.
Chris.