I have a query that returns a true/false result. If the result is true, I would like Access to automaticallly open a form based on an On Open command in another form. Any help is much appreciated.
I have a query that returns a true/false result. If the result is true, I would like Access to automaticallly open a form based on an On Open command in another form. Any help is much appreciated.
That query is RecordSource of a form?
What do you mean by 'automatically'? Some event must happen. You want to open form A which is bound to the query? You want code in that form Open event to immediately open another form if field of form A is true?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Thanks for the question... Once form A opens, I would like it to call a query, determine whether the parameter is true, and if so, open form B.
If the query is not included in form RecordSource, could do a DLookup on the query. Does the query result in a single record?
Or maybe even a DLookup (or DCount, DSum, etc) on the raw dataset.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
The query indeed results in a single record.
Are you familiar with domain aggregate functions? Access Help has guidelines.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
No, I'm not. But I can take a look. Thanks.