Mark
Wed Jun 30 10:33:22 CDT 2004
You can use paramters using CA and ADO. I see you found a solution. You
might want to look at my free CA Builder class that will create a CA in a
VCX for every table in your SQL DB. I also have sample code for CAs also
that may help you with CA and ADO. Just click the FoxPro Tools link at
http://www.mctweedle.com
and download the 2 CA zip files. Read the extensive comments near the top of
the CABuilder.PRG file.
"tsair" <tsair@myjaring.net> wrote in message
news:e8g4jCLXEHA.2844@TK2MSFTNGP12.phx.gbl...
> I use cursoradapter builder to build a class and compile it to a
datacls.exe
> file.
> I issue the command :
>
> odatacls = NEWOBJECT( "mtn08", "Datacls", "Datacls.exe" )
> odatacls.selectcmd = 'select * from mtn08 where code = ?lcmyvar'
> lcmyvar="ST"
> odatacls.cursorfill()
>
> to query a parameters sql results, the Error message show as :
>
> Microsoft OLE DB Provider for SQL Server : No Value given for one or more
> required parameters.
>
>
> How to pass the parameters into the query?
>
>