Link to home
Start Free TrialLog in
Avatar of military donut
military donutFlag for United States of America

asked on

IIF statement in SQL, .isvisible then

Hello,

Is there are way to check for visibility on a control before running the criteria:

IIF Forms!myfrm!drivers.visible THEN Forms!myfrm!myfield
SOLUTION
Avatar of Dale Fye
Dale Fye
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
IF Forms!myfrm!drivers.visible = True THEN Forms!myfrm!myfield <SomeThingHere>
Avatar of military donut

ASKER

On my subform I have it set up running on a sql statement that will save the data based on the main form, but one of the controls are visible and not visible based on the criteria on the main form.  So I set the sql statement to qry the data based on the main form.  

So if the one control is not visible then I want the data not to do the criteria for that control and vice versa....if the control is visible then run the criteria for the control..
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok, so doesn't look good, so i changed the format of the main form to show an ID field after the controls were updated and selected, then I am running the sql criteria on subform.