Form load cancelation

E-D

Registered User.
Local time
Today, 00:28
Joined
Dec 31, 2001
Messages
42
I have two question actualy:
1. I have a code written in the form_load section of a form that opens a new record.
The form can be entered from various Command Buttons.
there is a particular cmd button from which I don't want the form_open to be executed. Which open form arguments should I use in order to cancel the form_open code?

thanks in advance



I wish to change it
 
As I explained I can enter this spoken form from various locations in the prog. when I enter the form I usually want it to open as in a new record, however there is a specific Command button from which I don't want the form_open to work.
 
Are you passing a unique value to the form to open it in this "other mode" from the command button in question? Maybe toggle the data entry mode using OpenArgs on the OpenForm line?

If Not Is Null (Me.OpenArgs) Then
Me.DataEntry = Yes
Exit sub

Else
Me.DataEntry = No
Me.FieldName = OpenArgs

End If


Hope that puts you on the right track.


[This message has been edited by jwindon (edited 01-20-2002).]
 

Users who are viewing this thread

Back
Top Bottom