Ms-access – type mismatch runtime error 13 access 2007

ms-access

I just migrated to ms access 2007 and created my own ribbon.
In my form, I have this "print" button where if you click that it will open the "report form"

here is what I wrote in my VBA code:

Case "btnPrintRevisionEingabe"
DoCmd.OpenReport acReport, "Revision_Eingabe_rpt", acSaveNo

and when I clicked on the "print" button

I'm getting an error "type mismatch runtime error 13"….

Please help..
Thanks

Best Answer

Try just the following

docmd.OpenReport "Revision_Eingabe_rpt", acViewReport

nothing after that. Leave out the acSaveNo. That should work.

Related Topic