G
Guest
Hi all
I have a DateRange form that has 2 text boxes and 2 command buttons. The text boxes are to receive start and end dates and the buttons are 1) to open a print preview or 2) to close the DateRange form (i.e. to cancel)
When button 1 is pushed, the preview is launched as desired. I would also like to close the DateRange form when button 1 is pushed, since it is no longer required. I tried the DoCmd.Close within button 1 event code but I can't find the right place to put it
Any suggestions would be appreciated
Cheers
Jody
I have a DateRange form that has 2 text boxes and 2 command buttons. The text boxes are to receive start and end dates and the buttons are 1) to open a print preview or 2) to close the DateRange form (i.e. to cancel)
When button 1 is pushed, the preview is launched as desired. I would also like to close the DateRange form when button 1 is pushed, since it is no longer required. I tried the DoCmd.Close within button 1 event code but I can't find the right place to put it
Any suggestions would be appreciated
Cheers
Jody