G
Guest
I have generated the criteria that I want to use to filter a sub report, into
a table (the values for this come from a list box), and since the criteria
need to be of the type >0, 1 0r 2, etc they come from a text field.
If I copy and paste the generated values directly into the query then it all
works fine, however if I use a Dlookup then I get a data mismatch because the
data is text and the field is numeric.
This is my query:
SELECT Stewards.StewardID, Stewards.Title, Stewards.Surname,
Stewards.Council, Stewards.Suffix
FROM Stewards
WHERE (((Stewards.Council)=DLookUp("value","tblsys","ID=1")));
Value is text and Stewards.Council is numeric (autonumber)
Any thoughts please
Helen
a table (the values for this come from a list box), and since the criteria
need to be of the type >0, 1 0r 2, etc they come from a text field.
If I copy and paste the generated values directly into the query then it all
works fine, however if I use a Dlookup then I get a data mismatch because the
data is text and the field is numeric.
This is my query:
SELECT Stewards.StewardID, Stewards.Title, Stewards.Surname,
Stewards.Council, Stewards.Suffix
FROM Stewards
WHERE (((Stewards.Council)=DLookUp("value","tblsys","ID=1")));
Value is text and Stewards.Council is numeric (autonumber)
Any thoughts please
Helen