AllowEdits False and a combo box

  • Thread starter Thread starter MartyO
  • Start date Start date
M

MartyO

Hi there.
I have a form that I open in read only mode, by setting the
Me.AllowEdits = False on the forms Current event. And then when they click
on an edit button, I set Me.AllowEdits = True. That works great.

Except that, because of the form being in read only mode, my combo box
control that let's the user lookup a particular record doesn't work. Is
there a setting that I can use just on the combo box to make it work when the
form's allowedits is set to False?
thanks in advance!!
Marty
 
MartyO said:
Hi there.
I have a form that I open in read only mode, by setting the
Me.AllowEdits = False on the forms Current event. And then when they click
on an edit button, I set Me.AllowEdits = True. That works great.

Except that, because of the form being in read only mode, my combo box
control that let's the user lookup a particular record doesn't work. Is
there a setting that I can use just on the combo box to make it work when
the
form's allowedits is set to False?
thanks in advance!!


One approach is to use the combo box's Enter event to set AllowEdits to
True, and use its Exit event to set AllowEdits to False again.
 
Perfect! Thanks so much!

Dirk Goldgar said:
One approach is to use the combo box's Enter event to set AllowEdits to
True, and use its Exit event to set AllowEdits to False again.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)
 
Back
Top