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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report not showing up in the screen 1

Status
Not open for further replies.

JavaToPerlNowVB

Programmer
Jul 14, 2005
84
US
I have this code in a form as an action for a button, When the user hit the button in the form I want a report to showup in the screen, accoring to my code it doesn't showup in the screan but it gets send it to the printer.
Code:
Private Sub poleSpecificReport_Click()
On Error GoTo Err_poleSpecificReport_Click

    Dim stDocName As String
    Dim stLinkCriteria As String
    
    DoCmd.Echo True, "Preparing Report Data...Please Wait"
    stDocName = "PoleProblemReportSpecificMap"
    DoCmd.OpenReport stDocName, , , stLinkCriteria

Exit_poleSpecificReport_Click:
    Exit Sub

Err_poleSpecificReport_Click:
    MsgBox Err.Description
    Resume Exit_poleSpecificReport_Click
End Sub
help me out, thanks alot
anu
 
Second arguement of the openreport method...

[tt]docmd.openreport stdocname, acviewpreview, ...[/tt]

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top