Enable/Disable subform by combobox value on main form

foxtet

Registered User.
Local time
Today, 13:50
Joined
May 21, 2011
Messages
129
Hi I am in need of your expert advice on the issue to enable and disable sub form on the main form by the text of combo box selection.
for example

if cboFood.text = "sweets" thena
name of sub form.eanable = true
else
name of sub form.eanble = false
end if
end sub

with this sort of cord it's not working. How may I make this done. need your advice.

foxtet
 
Check (and bookmark) this link for the correct syntax for referring to Forms, Sub forms, their controls and properties from various relative locations.
 
Thank you John
you have solved the problem.

fox
 

Users who are viewing this thread

Back
Top Bottom