Hello,
I am beginning to learn VBA and would like to use code to replace the macros in my database. My question is very simple.
I have a report “rptCashBalances” that uses a parameter query based on dates to generate the records. I have a form “frmDateDialog” to input the selected date.
Currently, the macro does these steps:
1) User double clicks report icon - Macro opens Date Dialog form
2) User enters the date and clicks “OK” button and – Macro opens Cash Balance report
I would like this to be done by VBA. Once I get one solid example I will be able to use it in many places in my database. I tried to adapt some code I pieced together but it printed the report which was good for a laugh and not much else.
Any help is appreciated.
Kind regards, Dwight
I am beginning to learn VBA and would like to use code to replace the macros in my database. My question is very simple.
I have a report “rptCashBalances” that uses a parameter query based on dates to generate the records. I have a form “frmDateDialog” to input the selected date.
Currently, the macro does these steps:
1) User double clicks report icon - Macro opens Date Dialog form
2) User enters the date and clicks “OK” button and – Macro opens Cash Balance report
I would like this to be done by VBA. Once I get one solid example I will be able to use it in many places in my database. I tried to adapt some code I pieced together but it printed the report which was good for a laugh and not much else.
Any help is appreciated.
Kind regards, Dwight