G
Guest
I am rewriting a lot of old web pages that used dynamic SQL in the code of
the page and converting them to use stored procedures in the database
instead. I am having difficulty converting a specific query to work in
Access 2007. The query as it is written in the page is:
SELECT Product.Prod_Pk FROM Product WHERE (((Product.Prod_Title) LIKe
'"&text&"'))
When I try to create the query in Access I wrote it like this:
SELECT Product.Prod_Pk FROM Product WHERE (((Product.Prod_Title) LIKe [text]))
I run the query within Access and it asks me for the variable but when I
enter something I know to be in the database the query returns no rows. What
am I missing?
Donovan
the page and converting them to use stored procedures in the database
instead. I am having difficulty converting a specific query to work in
Access 2007. The query as it is written in the page is:
SELECT Product.Prod_Pk FROM Product WHERE (((Product.Prod_Title) LIKe
'"&text&"'))
When I try to create the query in Access I wrote it like this:
SELECT Product.Prod_Pk FROM Product WHERE (((Product.Prod_Title) LIKe [text]))
I run the query within Access and it asks me for the variable but when I
enter something I know to be in the database the query returns no rows. What
am I missing?
Donovan