How to call a Sub

D

D

Hi:

I have this button: Private Sub cmdJournalSummary_Click() that produces few
reports.

Can you please tell me how do I call it to run all the reports when the form
is open? I do not what to click on it; how can I write a function that calls
ths Sub?

Thanks,

Dan
 
P

Paolo

Hi D,

on the on open event of your form add

cmdJournalSummary_Click

so the code in the button'll be executed

HTH Paolo
 
D

D

Perfect!, Thanks Paolo!

Dan

Paolo said:
Hi D,

on the on open event of your form add

cmdJournalSummary_Click

so the code in the button'll be executed

HTH Paolo
 
Top