Folks,
I think this should be simple but ... sound of tearing hair...
Access 2002 under XP. How should I call one sub procedure from another on the same form? I have a form with a date field. On mousedown, I make visible an ocx calendar, select a date and make the date field equal to the selected value and then select some records based upon that date. Fine. Now I'd like to do the same thing based upon today's date when the form loads. It seems logical to simply (somehow) call the existing onmousedown sub procedure that already exists ... but I can't see how to do it .. run ... execute ... tried many ways and followed many web threads but no joy.
I can overcome the problem by simply copying the existing code into the on load event but believe that I shouldn't have to. Reusable code seems right here but how?
TIA for anyone able to respond
Regards, Brian
I think this should be simple but ... sound of tearing hair...
Access 2002 under XP. How should I call one sub procedure from another on the same form? I have a form with a date field. On mousedown, I make visible an ocx calendar, select a date and make the date field equal to the selected value and then select some records based upon that date. Fine. Now I'd like to do the same thing based upon today's date when the form loads. It seems logical to simply (somehow) call the existing onmousedown sub procedure that already exists ... but I can't see how to do it .. run ... execute ... tried many ways and followed many web threads but no joy.
I can overcome the problem by simply copying the existing code into the on load event but believe that I shouldn't have to. Reusable code seems right here but how?
TIA for anyone able to respond
Regards, Brian