Hi everyone,
I am running a problem with my search query. The query I have used is,
SELECT Table1.PropertyName, Table1.City, Table1.Address,Table1.County,Table1.Material
FROM Table1
WHERE (Table1.PropertyName Like Nz(Forms!QueryForm1!PropertyName,"") & "*" And Table1.City Like Nz(Forms!QueryForm1!City,"") & "*" And Table1.Address Like Nz(Forms!QueryForm1!Address,"") & "*");
The Table1 has 5 fields and I have used only 3 for search purpose. The query works fine if the 3 fields which I have used for query contains some value in the table. If any of the value is missing in the table, it is not working. How to resolve this. Please help!, Appreciated.
Thanks
I am running a problem with my search query. The query I have used is,
SELECT Table1.PropertyName, Table1.City, Table1.Address,Table1.County,Table1.Material
FROM Table1
WHERE (Table1.PropertyName Like Nz(Forms!QueryForm1!PropertyName,"") & "*" And Table1.City Like Nz(Forms!QueryForm1!City,"") & "*" And Table1.Address Like Nz(Forms!QueryForm1!Address,"") & "*");
The Table1 has 5 fields and I have used only 3 for search purpose. The query works fine if the 3 fields which I have used for query contains some value in the table. If any of the value is missing in the table, it is not working. How to resolve this. Please help!, Appreciated.
Thanks