How to call a Sub

  • Thread starter Thread starter D
  • Start date Start date
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
 
Hi D,

on the on open event of your form add

cmdJournalSummary_Click

so the code in the button'll be executed

HTH Paolo
 
Back
Top