I have a proc that does some selects. The first select is driven by a passed in UserID. THe next is driven by a foriegn key found in the first select.
New hurdle in SPs for me. How do I get the FK I find in select 1 to select 2 I tried declaring a local @var, then setting it to that column, but it doesn't know what that column is. Thoughts. J -- John Wilker Writer/Web Consultant www.johnwilker.com / www.red-omega.com "The measure of success is not whether you have a tough problem to deal with, but whether it's the same problem you had last year." ~John Foster Dulles, Former US Sec. of State. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226629 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

