AllowEdits False and a combo box

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
 
D

Dirk Goldgar

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.
 
M

MartyO

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top