DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
IF Forms!myfrm!drivers.visible = True THEN Forms!myfrm!myfield <SomeThingHere>
Ernest Grogg
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..
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.