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

doCmd not working 1

Status
Not open for further replies.

rry2k

Programmer
Jun 28, 2001
678
US
Hi,
I'm trying to open a report when a radio button is clicked. Unfortunately I keep getting a message that tells me that it can't find the report. I know it's there and I'm spelling it correctly. Help said to look in the action arguements section of the macro window to show all reports. I can't seem to find that window. My code looks like this:

Private Sub Option0_Click()
DoCmd.OpenReport (presentation), acViewPreview
End Sub

Thanks for the help..Russ
 
I sent you an email on this. Now I need to add a parm query. When I run this I get an object not found. The query does work outside of the macro.

Thanks..Russ

Private Sub Option0_Click()
DoCmd.OpenReport "presentation", acViewPreview, , Presentation01.Candidate1 Like "*" & [Type a candidate:] & "*"

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top