This is the SQL:
SELECT [Property Details].[Property Ref], [Property Details].[Property Address], [Property Details].County, [Property Details].[Post Code], [Property Details].[Property Type], [Property Details].Bedrooms, [Property Details].Floor, [Property Details].[Start Date], [Property Details].[End Date], [Property Details].Rent, [Property Details].[Guaranteed Rent], [Property Details].Supplier, [Property Details].[Landlord Ref], [Property Details].[Tenant Ref]
FROM [Property Details]
WHERE ((([Property Details].[Property Ref])=[Enter Property Ref:])) OR ((([Property Details].[Property Address]) Like ("*" & [Enter Address:] & "*"))) OR ((([Property Details].[Post Code]) Like ("*" & [Enter Postcode:] & "*"))) OR ((([Property Details].Bedrooms)=[Enter No of Bedrooms:]));
When I enter N9 as a partial postcode (no other parameter values) it brings up a list of all postcodes with a N in it. If I want to enter a partial address (no other parameter value) I get no results at all. If I removed the code from Enter Postcode, the partial address works fine.
I don't want to use the AND operator as I want the user to only need to enter one of the parameter values.