N
Niklas Östergren
Hi!
I have some buttons on a wizard form (<cmdAbort>, <cmdPrevious>, <cmdNext>
and <cmdFinish>) which I´d like to set enable property = True/False.
One criteria for setting cmdFinish.Enable = True is that a couple of the
fields in the form have any data so I use code like this:
If Not Me.txtFirstName & "" = "" And Not Me.txtLastName & "" = "" Then
cmdFinish.Enable = True
End If
I have totally 8 fields which need to have data before I enable <cmdFinish>.
The form is only allowed to have ONE record since it´s (I don´t know what
you call this type of table in english) a middle table only used to display
the entered or imported data to the user. The data will, after user have
fired <cmdFinish_Click> event or <cmdNext_Click> event, be copied to the
final tabels where the data will be stored. The data in this middle table
(tblNewMemberShipEntry) will then be deleted and the table will then be
empty.
Now to my Q:
In which event of the form shall this code fire? I have tryed Form_Dirty,
Form_AfterUpdate but it doesn´t fire. I have put a break verry early in my
code just to se if the code fire´s at all but it doesn´t.
TIA!
// Niklas
I have tryed to put this code in
I have some buttons on a wizard form (<cmdAbort>, <cmdPrevious>, <cmdNext>
and <cmdFinish>) which I´d like to set enable property = True/False.
One criteria for setting cmdFinish.Enable = True is that a couple of the
fields in the form have any data so I use code like this:
If Not Me.txtFirstName & "" = "" And Not Me.txtLastName & "" = "" Then
cmdFinish.Enable = True
End If
I have totally 8 fields which need to have data before I enable <cmdFinish>.
The form is only allowed to have ONE record since it´s (I don´t know what
you call this type of table in english) a middle table only used to display
the entered or imported data to the user. The data will, after user have
fired <cmdFinish_Click> event or <cmdNext_Click> event, be copied to the
final tabels where the data will be stored. The data in this middle table
(tblNewMemberShipEntry) will then be deleted and the table will then be
empty.
Now to my Q:
In which event of the form shall this code fire? I have tryed Form_Dirty,
Form_AfterUpdate but it doesn´t fire. I have put a break verry early in my
code just to se if the code fire´s at all but it doesn´t.
TIA!
// Niklas
I have tryed to put this code in