Converting Access Querry to Paramater Query passing Form Varables?

M

msNews

I am upsizing a Access 2000 Database to SQL 2000 and I have a problem with
creating a parameter query in SQL.
In Access Code I do the following: Me.RecordSource = "SearchQuery"
where
"SearchQuery" = Select JobNum from Jobs where JobNum =[Forms]![Job
Entry]![Account#]
and I need to change this to a parameter query in SQL Server and pass the
information and I am having
problems.


Thanks
 
M

Mary Chipman

You'd need to create a stored procedure or UDF. There's no such thing
as a saved parameter query in SQL Server, and views don't support
parameters. Either that or you can supply the parameter values in
direct SQL as you appear to be trying to do. You can't pass form and
control references to SQL Server, only the values from the controls.

-- Mary
Microsoft Access Developer's Guide to SQL Server
http://www.amazon.com/exec/obidos/ASIN/0672319446
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top