allow\disallow

  • Thread starter Thread starter herbert
  • Start date Start date
H

herbert

Hi Guy's i am using access 2003, on my form ,i have
textboxs and comboboxes, if there is an entry in one
special text box, i want to disallow entry in the combobox
, and vices\versa ,
i am just a novice so could some one list the steps to do
this in a macros or VB
thanks
herbert
 
You can use the Visible or Enabled property of your combobox to restrict its
use, and control it through the AfterUpdate event of your text control. Use
something like:

If IsNull(Me![myTextbox]), Then
Me![myCombo].Visible = True
Else
' if anything entered into the text box then make the combo
invisible to prevent entry into it
Me![myCombo].Visible = False
End If

-Ed
 

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

Back
Top