A
Access Greenhorn
I have multiples If...Else If statements in the afterupdate event of a combo
box that enable or disable text objects. This same code is in the form's On
Current event so the same code executes while the user is scrolling thru the
records. The problem is that when the user gets to a new record the debugger
is activated b/c there is no entry yet in the combo box and so according to
the On Current event code there is a Null entry.
One way to fix this would be to use the NZ function (in the Form's On
Current Event Code), but my concern is that this would essentially be
creating an entry and the user would get the 'cannot save this record b/c
there is no primary key....' error message when they close the
form...annoying.
Am I wrong/right? Any solutions?
Thanks,
AG
box that enable or disable text objects. This same code is in the form's On
Current event so the same code executes while the user is scrolling thru the
records. The problem is that when the user gets to a new record the debugger
is activated b/c there is no entry yet in the combo box and so according to
the On Current event code there is a Null entry.
One way to fix this would be to use the NZ function (in the Form's On
Current Event Code), but my concern is that this would essentially be
creating an entry and the user would get the 'cannot save this record b/c
there is no primary key....' error message when they close the
form...annoying.
Am I wrong/right? Any solutions?
Thanks,
AG