Function to return Oracle result

  • Thread starter Thread starter beatdown
  • Start date Start date
B

beatdown

Hello,

I am big on PHP, but know little about VBA. This is what I need:

A function that connects to a oracle database, does a query, an
returns the result. This function is intended to be used where th
result will be one record of one field.

For example, I have a list of account numbers in one column. I want
function in column two to return the name associated with that accoun
number. (The table being queried will have a few million records t
sort through, importing the data is not a solution).

I need the function to be a vehicle for this SQL statement:

SELECT X FROM Y WHERE ACCOUNT = Z

Where X (field name), Y (database name), and Z (info) can be frovide
by the user. Maybe function GetResult(X,Y,Z). That way it coul
reference cells. The function should return the result.

Is this difficult? Am I being clear?

Thanks
 

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

Back
Top