Hi..Please help if you can.
I have a Main form (FormMain) which contains several subforms. On FormMain I have a commandButton (cmdBestFit). I am trying to get an image (Image1) on one of the subforms (FormImage) to respond accordingly when cmdBestFit is clicked. I have tried the following with NO luck:
Forms!FormMain.FormImage.Form!Image1.BestFit
Forms(FormImage).Form.Image1.BestFit
Forms(FormMain)(FormImage).Form.Controls(Image1).BestFit
Forms!FormMain.Forms.FormImage.Form!Image1.BestFit
Me!FormImage.Image1.BestFit
Me!Forms!FormImage!Image1.BestFit
Common error reported is "... can't find the field 'FormImage' referred to in your expression."
PS. .BestFit is a property of Image1...when I have the command button directly located on FormImage it works fine...but I would like to move it
I have a Main form (FormMain) which contains several subforms. On FormMain I have a commandButton (cmdBestFit). I am trying to get an image (Image1) on one of the subforms (FormImage) to respond accordingly when cmdBestFit is clicked. I have tried the following with NO luck:
Forms!FormMain.FormImage.Form!Image1.BestFit
Forms(FormImage).Form.Image1.BestFit
Forms(FormMain)(FormImage).Form.Controls(Image1).BestFit
Forms!FormMain.Forms.FormImage.Form!Image1.BestFit
Me!FormImage.Image1.BestFit
Me!Forms!FormImage!Image1.BestFit
Common error reported is "... can't find the field 'FormImage' referred to in your expression."
PS. .BestFit is a property of Image1...when I have the command button directly located on FormImage it works fine...but I would like to move it