I have a query with criteria that can come from either a form control that is set with data, or from a variable that is culled from the environment by another function. Psuedo code goes like this:
If Form.reports.combo1 <> Null
Then Criteria = Form.reports.combo1
Else Criteria = Lookname()
Return Criteria
How do I code this in Access Basic?
Thanks in advance.
Mike
If Form.reports.combo1 <> Null
Then Criteria = Form.reports.combo1
Else Criteria = Lookname()
Return Criteria
How do I code this in Access Basic?
Thanks in advance.
Mike