Hide subforms control from main forms control

N

New_Access

I have no idea how to hide some controls in my subform
if value in a textbox in main form is >1 or =1.I can't write a code.
Please help.
 
G

geppo

Ciao said:
I have no idea how to hide some controls in my subform
if value in a textbox in main form is >1 or =1.I can't write a code.
Please help.


Private sub form_current()

if youControlName => "1" then

forms!NameForm!SubForm.form.YouControlName.visible = false

end if

end sub
 

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