If you have a specific question I can help.
I can probably lead you through it, but I won't do it all for you I'm afraid.
I have a report called rptBoardUsage that I open by first entering a beginning date and ending date in to a form called frmBoardUsageReport. When I press the command button it opens the report and runs the query that fills the report. A text box on the report displays the beginning date, it's data control sorce is
=[Forms]![frmBoardUsageReport]![BegDate]. This works great until I set the frmBoardUsageReport to close after the report opens, then a get the #name error.
I have tried using the following code in the report open module:
- Private Sub Report_Open(Cancel As Integer)
-
DoCmd.OpenReport rptBoardUsage, Text18 = Forms!frmBoardUsageReport!BegDate
-
DoCmd.OpenReport rptBoardUsage, Text20 = Forms!frmBoardUsageReport!EndDate
-
End Sub
But it dosen't work. All I want is to be able to have the frm close when the report opens and still have the dates appear on the report.
thanks,
Jeff