OrWolf
MIS
- Mar 19, 2001
- 291
Hi All,
I have a form that I open from a main menu either by selecting an existin record or select to Add. When selecting Add the following code is run:
DoCmd.OpenForm stDocName, acNormal
DoCmd.GoToRecord , , acNewRec
My problem is that in the Open of the form I want to have code modify functionality based on whether the form is in add mode or not, but in the Open and Load the form still sees the first record in the table rather than a new record. How can I check for this? Just set and check a global variable?
Thanks!
I have a form that I open from a main menu either by selecting an existin record or select to Add. When selecting Add the following code is run:
DoCmd.OpenForm stDocName, acNormal
DoCmd.GoToRecord , , acNewRec
My problem is that in the Open of the form I want to have code modify functionality based on whether the form is in add mode or not, but in the Open and Load the form still sees the first record in the table rather than a new record. How can I check for this? Just set and check a global variable?
Thanks!