Hi. I have tried again and if I use my sub that already exists in the form to launch the report:
Private Sub PrintOutRecSheet_Click()
If Application.CurrentProject.AllReports("LUCY BARCLAY RECON REPORT").IsLoaded = True Then
DoCmd.Close acReport, "LUCY BARCLAY RECON REPORT"
Else
DoCmd.OpenReport "LUCY BARCLAY RECON REPORT", acViewPreview
End If
End Sub
I get the following error:
![]()
What code is trying to set Column Count?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
I moved all the code from the load event to the open event. I didn't use a button, I just opened the report from the nav pane, but it looked about like your picture.
I moved the code to open and it works fine now. Sorry to have troubled you. Thank you so much. Tony
Happy to help Tony. You're not my brother Tony, are you?![]()
I guess not