Disable Textbox on main form from button on subform

da poet

Registered User.
Local time
Today, 12:17
Joined
Aug 23, 2004
Messages
39
My subform when i click the New record button on the subform i want it to disable a text box that is on the main form.


Me.Pensioners.Form!quicksearch.Enabled = False

where Pensioners is the name of the Parent Form. Thhis isnt working for one reason or another. Please advise.
 
Code:
Forms![Pensioners].txtQuickSearch.Enabled = False
 
Last edited:
Thanks

Hey thanks for the code ghudson. Really appreciate the help.
 
You are welcome.

Searching this forum and also the Access VBA help files will allow you to find a lot of information on how to do something when you get stuck.
 

Users who are viewing this thread

Back
Top Bottom