Full Version: Hide subform from the subform
UtterAccess Forums > Microsoft® Access > Access Forms
bis2k
I have a form with two subfroms.
I use subfrm1 to select a customer record. I want to have a button on subfrm1 that hides it and makes subfrm2 visible.
CODE
Forms!frmCustomerHistory!fsubfrmCustomerHistory2.Form.SetFocus
  Me!fsubfrmCustomerHistory1.Form.Visible = False
  Me!frmCustomerHistory!fsubfrmCustomerHistory1.Form.Visible = True

keep getting an error
Can this be done?
Thanks
Larry
theDBguy
Try moving the button to the main form if you can.
Hope that helps...
This is a "lo-fi" version of UA. To view the full version with more information, formatting and images, please click here.