Hi,
I know it will be a simple answer but how do I set a VBA script on a form opening?
Hi,
I know it will be a simple answer but how do I set a VBA script on a form opening?
Code in the form Load, Open, or Current event.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Perfect Thanks
One more thing off topic
I want a button to Run a specific report then print
can you help? or should I just make a new thread?
DoCmd.OpenReport "report name here"
will send direct to printer.
Access VBA Help has more info on using OpenReport (or OpenForm) and its arguments.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Thank you![]()