i am using Access 97 in a Novell environment.
i have a form that has an autonumber field called ID.
I have an 'Add New Record' button on the form. if the user clicks on the 'Add New Record' button, they must type something in one of the text boxes (or even hit the spacebar once) to populate the autonumber.
This can create a problem because one of my text boxes has a mousedown event that opens up another form and uses the link criteria of ID.
so if the user clicks on the 'Add New Record' button, then right away clicks in the text box that triggers the MouseDown event, they get a syntax error: [missing operator] in query expression '[id]='
i understand the error. it is because the autonumber hadn't 'kicked in' yet.
How can i make the autonumber be triggered as soon as the user clicks on the 'Add New Record' button? or does anyone have any suggestions how i can avoid this potential error?
i have a form that has an autonumber field called ID.
I have an 'Add New Record' button on the form. if the user clicks on the 'Add New Record' button, they must type something in one of the text boxes (or even hit the spacebar once) to populate the autonumber.
This can create a problem because one of my text boxes has a mousedown event that opens up another form and uses the link criteria of ID.
so if the user clicks on the 'Add New Record' button, then right away clicks in the text box that triggers the MouseDown event, they get a syntax error: [missing operator] in query expression '[id]='
i understand the error. it is because the autonumber hadn't 'kicked in' yet.
How can i make the autonumber be triggered as soon as the user clicks on the 'Add New Record' button? or does anyone have any suggestions how i can avoid this potential error?