I would have to have the database in front of me, but what I might do is use perhaps the On Load event and run the query in code, and then check the record count. If the record count = 0, then substitute your other values.
I know the other posters here should have some more elegant solutions. C'mon folks.
Let me know if you want to go this way and we can work our some code.
I would use ADO or DAO, open a connection and recordset, run the query, check the recordcount. If rs.RecordCount = 0 Then, run the second query with substitute values.
mmcdonal
|