Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Paramter queries - MDB to ADP - What should I know? 1

Status
Not open for further replies.

lameid

Programmer
Jan 31, 2001
4,208
US
I am finally taking the plunge into moving a database from a Jet backend to SQL Server and moving to an ADP. I have been developing in Access for nearly ten years but have done little with ADP's and only moderate work with SQL Server.

What would really help me out is a list of the methods or concepts that can be employed to work around the difference in doing things. A in a nutshell guide to programming equivalents or tricks would be great.

I understand that I have to use Stored procedures in order to use parameters.

I guess my question related to that is what ways can the parameters be passed?

Obviously a connection object can be used to call a stored procedure and concatenating variables is in is trivial. The issue I see is having a combobox with a stored procedure as its row source. How does one specify the parameter? Does requerying work the same as if it were Jet referencing a form control as a parameter?

The second thing that has me uncertain is handling nested parameter queries. The feature I am seeing lost is the ability to make a parameter query that behaves as a view. Specifically, I want a parameterterized result set to be used in another higher level select statement (my understanding is you can't use a stored procedure as a subquery). In an MDB, this is easy as each querydef has this view like behavior unless of course it is an action query. My only thought is to take each lower level querydef on the MDB side and make it a subquery in the select of the top level object. Besides being tedious, this adds a complexity to code management because I might really only want to maintain this one parameterized select statement in one place instead of several higher level objects.

All insights, recommendations and thoughts on how to skin the cat are welcome.

 
Thanks for knowing the name of what I needed.

You just became my favorite person for at least a week!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top