G
Guest
Hi,
i created the following query:
SELECT [outlet data].[Out Nbr], [outlet data].[Outlet Name], [outlet
data].[Outlet Address], [outlet data].[Out City Name], [outlet data].[Out
State Code], [outlet data].[Out Zip Code]
FROM [outlet data]
WHERE ((([outlet data].[Outlet Name]) Like
nz([forms]![filter]![outname],"*")) AND (([outlet data].[Outlet Address])
Like nz([forms]![filter]![outaddress],"*")) AND (([outlet data].[Out City
Name]) Like nz([forms]![filter]![outcity],"*")) AND (([outlet data].[Out Zip
Code]) Like nz([forms]![filter]![outzip],"*")));
What i want it to do is that when i update my search fields on my "filter
form" the query will return all the records that match that criteria in that
field and return all records in a field if left blank.
When i update the fields on my forms, the query just goes blank, what am i
doing wrong, i've done the exact same thing in another database and it works
just fine. For some reason it doesnt want to work again. I also noticed that
it works fine with two of the search fields: [outzip] and [outaddress] but
not with [outname] and [outcity]. I would really appreciate any help.
Thanks
i created the following query:
SELECT [outlet data].[Out Nbr], [outlet data].[Outlet Name], [outlet
data].[Outlet Address], [outlet data].[Out City Name], [outlet data].[Out
State Code], [outlet data].[Out Zip Code]
FROM [outlet data]
WHERE ((([outlet data].[Outlet Name]) Like
nz([forms]![filter]![outname],"*")) AND (([outlet data].[Outlet Address])
Like nz([forms]![filter]![outaddress],"*")) AND (([outlet data].[Out City
Name]) Like nz([forms]![filter]![outcity],"*")) AND (([outlet data].[Out Zip
Code]) Like nz([forms]![filter]![outzip],"*")));
What i want it to do is that when i update my search fields on my "filter
form" the query will return all the records that match that criteria in that
field and return all records in a field if left blank.
When i update the fields on my forms, the query just goes blank, what am i
doing wrong, i've done the exact same thing in another database and it works
just fine. For some reason it doesnt want to work again. I also noticed that
it works fine with two of the search fields: [outzip] and [outaddress] but
not with [outname] and [outcity]. I would really appreciate any help.
Thanks