Results 1 to 1 of 1

SQL Query Return One Variable

Threaded View

  1. #1
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387

    SQL Query Return One Variable

    Hi,

    I'm familiar with writing two types of queries. One, is where I return the results of a table into a record set. The second is where I call a stored procedure, and return parameters that I pass to it.

    If I don't want to create a Stored Procedure, but I only have one value I want returned, what is the best way of doing this?

    Edit: Note that I want the result to be handled in VBA directly without touching a worksheet.

    Edit: I ended up just using a recordset and looping through it.
    Last edited by yawnzzzz; 08-11-2011 at 02:14 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1