A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

AllowEdits False and a combo box



 
 
Thread Tools Display Modes
  #1  
Old June 2nd, 2009, 08:51 PM posted to microsoft.public.access.forms
MartyO
external usenet poster
 
Posts: 40
Default AllowEdits False and a combo box

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
  #2  
Old June 2nd, 2009, 08:59 PM posted to microsoft.public.access.forms
Dirk Goldgar
external usenet poster
 
Posts: 2,529
Default AllowEdits False and a combo box

"MartyO" wrote in message
...
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.

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

(please reply to the newsgroup)

  #3  
Old June 2nd, 2009, 10:41 PM posted to microsoft.public.access.forms
MartyO
external usenet poster
 
Posts: 40
Default AllowEdits False and a combo box

Perfect! Thanks so much!

"Dirk Goldgar" wrote:

"MartyO" wrote in message
...
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.

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

(please reply to the newsgroup)


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:42 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.