S
Steve
I have a simple table set up upon which I am designing multiple reports. I
have a column in the table called PrintCode which can contain any
combination of letters E, C or O. I want to run a query to select different
datasets for different reports. Simple enough in theory.
SQL looks like this :
SELECT [PRICE LIST].Group, [PRICE LIST].Description, [PRICE LIST].[Normal
Rate], [PRICE LIST].Unit
FROM [PRICE LIST]
WHERE (([PRICE LIST]![PrintCode]Like "O"))
ORDER BY [PRICE LIST].Group, [PRICE LIST].Description, [PRICE LIST].[Normal
Rate];
The "Like" function is only returning those rows that contain only the
letter "O" where I thought it would return all rows that contained the
letter "O" in any position. I also tried to invert the function (WHERE "O"
like [PRICE LIST]![PrintCode])
to no avail.
help
have a column in the table called PrintCode which can contain any
combination of letters E, C or O. I want to run a query to select different
datasets for different reports. Simple enough in theory.
SQL looks like this :
SELECT [PRICE LIST].Group, [PRICE LIST].Description, [PRICE LIST].[Normal
Rate], [PRICE LIST].Unit
FROM [PRICE LIST]
WHERE (([PRICE LIST]![PrintCode]Like "O"))
ORDER BY [PRICE LIST].Group, [PRICE LIST].Description, [PRICE LIST].[Normal
Rate];
The "Like" function is only returning those rows that contain only the
letter "O" where I thought it would return all rows that contained the
letter "O" in any position. I also tried to invert the function (WHERE "O"
like [PRICE LIST]![PrintCode])
to no avail.
help