Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reports 1

Status
Not open for further replies.

Krash878

Programmer
May 8, 2001
172
US
I have a form and a report that both have a date field. I would like to have the form have an opject that when clicked prints out all the Items that have that date.

the code is

Private Sub Command21_Click()
On Error GoTo Err_Command21_Click

Dim stDocName As String

stDocName = "Worksheet"
DoCmd.OpenReport stDocName, acNormal, , "Date =" & Me![DateM]

Exit_Command21_Click:
Exit Sub

Err_Command21_Click:
MsgBox Err.Description
Resume Exit_Command21_Click

End Sub

my problem is I am getting blank pages and only one page
thanks
Kenny
 
DoCmd.OpenReport stDocName, acNormal, ,
"[Date] = # "& Me.DateM &" #"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top