D
dio
Hi there,
I'm trying to create an OleDBDataAdapter with a command that will receive a
parameter to act as a filter on the query.
I'm using the Query Builder wizard and it works fine, unless I define an
external parameter as the criteria, like '=@catID' (see the query please).
When I do it, I get the error "Data type error in expression"!
This is a sample of the query I'm trying to use:
----------------------------------
SELECT content.contentID, content.genID, content.ord, content.title,
users.username, users.userID, content.catID
FROM (content INNER JOIN
users ON content.userID = users.userID)
WHERE (content.catID = @catID)
ORDER BY content.ord DESC
I'm trying to create an OleDBDataAdapter with a command that will receive a
parameter to act as a filter on the query.
I'm using the Query Builder wizard and it works fine, unless I define an
external parameter as the criteria, like '=@catID' (see the query please).
When I do it, I get the error "Data type error in expression"!
This is a sample of the query I'm trying to use:
----------------------------------
SELECT content.contentID, content.genID, content.ord, content.title,
users.username, users.userID, content.catID
FROM (content INNER JOIN
users ON content.userID = users.userID)
WHERE (content.catID = @catID)
ORDER BY content.ord DESC