I have a query that currently prompts the user to enter a confirmation number [ConfID] whenever it is run. I would like to change the criteria, so that IF the Form that is used to enter records is open, it pulls the ConfID from the current record on the form, and otherwise continues to prompt the user to enter the ConfID.
I have tried variations of =IIf(CurrentProject.AllForms("F-OrderConf").IsLoaded=TRUE, [Forms]![F-OrderConf]![ConfID], [Enter ConfID])
but am told that "IsLoaded" is an invalid syntax.
I don't know how to code, so am hoping this can be solved using the expression builder.