A
Access Beginner
i have a form on an access FE (access 2000) i use one combo box to determine
which report is loaded on a click event, at the moment they open in
acViewPreview,
but i wish to be able to have a combo box with acViewNormal and
acViewPreview as the options and then have the vba grab the view method
however i get type mismatch error any advice? or help here is my code
dim ReportName as Variant
dim Method as Variant
ReportName = me.cboreport
Method = me.cboMethod
doCmd.OpenReport ReportName, Method
which report is loaded on a click event, at the moment they open in
acViewPreview,
but i wish to be able to have a combo box with acViewNormal and
acViewPreview as the options and then have the vba grab the view method
however i get type mismatch error any advice? or help here is my code
dim ReportName as Variant
dim Method as Variant
ReportName = me.cboreport
Method = me.cboMethod
doCmd.OpenReport ReportName, Method