Hi,
I am writing an application in which a continuous form is used to search for records using filters based on search parameters you supply. The continuous form provides you with a list of records of which you can hilight one and press a "Select" button on the bottom which fills in fields on a separate form.
My problem arises when you specify search parameters which return no rows and the search form's detail section is empty. I would like to close the form immediately with a "No rows found" warning message in such a case. I thought I should be able, in a load routine, to check whether any details have been returned. However, the form was created with the form wizard, so I am not using sql to fill the form with data, and there is no recordset (that I know of anyway) to check for EOF. I do not know how Access handles retrieving the information and don't know how to check for an EOF condition. Any suggestions?
I am writing an application in which a continuous form is used to search for records using filters based on search parameters you supply. The continuous form provides you with a list of records of which you can hilight one and press a "Select" button on the bottom which fills in fields on a separate form.
My problem arises when you specify search parameters which return no rows and the search form's detail section is empty. I would like to close the form immediately with a "No rows found" warning message in such a case. I thought I should be able, in a load routine, to check whether any details have been returned. However, the form was created with the form wizard, so I am not using sql to fill the form with data, and there is no recordset (that I know of anyway) to check for EOF. I do not know how Access handles retrieving the information and don't know how to check for an EOF condition. Any suggestions?