Michael J Ross
Registered User.
- Local time
- Today, 06:02
- Joined
- Mar 2, 2006
- Messages
- 245
Where it says #Name? this means those fields are missing from the query, you need to add the fields as columns in the query design grid.
The new form will automatically be updated as it is sourced from the query which queries your table of sites.
As you are searching for either ref no or postcode you will need to modify your query so it runs if either the ref no or postcode or not entered, change the refno criteria to [Forms]![FRM_Search]![txtSearch] Or [Forms]![FRM_Search]![txtSearch] Is Null and do the same for your postcode search criteria.
The new form will automatically be updated as it is sourced from the query which queries your table of sites.
As you are searching for either ref no or postcode you will need to modify your query so it runs if either the ref no or postcode or not entered, change the refno criteria to [Forms]![FRM_Search]![txtSearch] Or [Forms]![FRM_Search]![txtSearch] Is Null and do the same for your postcode search criteria.