Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Accessing oracle database through excel cell

Hi,
The problem I am trying to solve is acessing an oracle database and excecute
a query through an excel cell.

The query would be as follows: select count(XXX_ID) from XXX.YYY_YYY where
AAA in (Excel cell B2) and CCC in (Excel cell G2);

Is is possible to execute such a query, and capture variable info from
another excel cell?

Thanks for any help!
  #2   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Accessing oracle database through excel cell

You can do Data GetExternalData CreateNewQuery and follow the menus.
You must however, have specific access and Rights to the database or it won't
work.

hth
Vaya con Dios,
Chuck, CABGx3



"coeus" wrote:

Hi,
The problem I am trying to solve is acessing an oracle database and excecute
a query through an excel cell.

The query would be as follows: select count(XXX_ID) from XXX.YYY_YYY where
AAA in (Excel cell B2) and CCC in (Excel cell G2);

Is is possible to execute such a query, and capture variable info from
another excel cell?

Thanks for any help!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Accessing oracle database through excel cell

Unfortunately, I can't seem to figure out how to call on values from Excel
cells to insert into the queries written in the Query Wizard.

"CLR" wrote:

You can do Data GetExternalData CreateNewQuery and follow the menus.
You must however, have specific access and Rights to the database or it won't
work.

hth
Vaya con Dios,
Chuck, CABGx3



"coeus" wrote:

Hi,
The problem I am trying to solve is acessing an oracle database and excecute
a query through an excel cell.

The query would be as follows: select count(XXX_ID) from XXX.YYY_YYY where
AAA in (Excel cell B2) and CCC in (Excel cell G2);

Is is possible to execute such a query, and capture variable info from
another excel cell?

Thanks for any help!

  #4   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Accessing oracle database through excel cell

It's not real friendly in that way........you'll have to get into some pretty
intense VBA programming if you want to do much of that..........you might try
going through the steps manually one-time with the Macro Recorder turned on
and see what you get....sometimes it's clear enough to be editable.


hth
Vaya con Dios,
Chuck, CABGx3



"coeus" wrote:

Unfortunately, I can't seem to figure out how to call on values from Excel
cells to insert into the queries written in the Query Wizard.

"CLR" wrote:

You can do Data GetExternalData CreateNewQuery and follow the menus.
You must however, have specific access and Rights to the database or it won't
work.

hth
Vaya con Dios,
Chuck, CABGx3



"coeus" wrote:

Hi,
The problem I am trying to solve is acessing an oracle database and excecute
a query through an excel cell.

The query would be as follows: select count(XXX_ID) from XXX.YYY_YYY where
AAA in (Excel cell B2) and CCC in (Excel cell G2);

Is is possible to execute such a query, and capture variable info from
another excel cell?

Thanks for any help!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Accessing oracle database through excel cell

I'm somewhat comfortable writing the VBA, I just dont know how to use it to
connect to my oracle db

"CLR" wrote:

It's not real friendly in that way........you'll have to get into some pretty
intense VBA programming if you want to do much of that..........you might try
going through the steps manually one-time with the Macro Recorder turned on
and see what you get....sometimes it's clear enough to be editable.


hth
Vaya con Dios,
Chuck, CABGx3



"coeus" wrote:

Unfortunately, I can't seem to figure out how to call on values from Excel
cells to insert into the queries written in the Query Wizard.

"CLR" wrote:

You can do Data GetExternalData CreateNewQuery and follow the menus.
You must however, have specific access and Rights to the database or it won't
work.

hth
Vaya con Dios,
Chuck, CABGx3



"coeus" wrote:

Hi,
The problem I am trying to solve is acessing an oracle database and excecute
a query through an excel cell.

The query would be as follows: select count(XXX_ID) from XXX.YYY_YYY where
AAA in (Excel cell B2) and CCC in (Excel cell G2);

Is is possible to execute such a query, and capture variable info from
another excel cell?

Thanks for any help!



  #6   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 594
Default Accessing oracle database through excel cell

Well then, just turn on the Macro Recorder.........Tools Macros
RecordNewMacro........... and go through the MSQuery steps of Data
GetExternalData CreateNewQuery and then follow the menus to select your
Oracle Database, etc etc..........if you don't see the selection of Oracle,
then you do not have access to it and need to get the rights/password/etc
from your MIS folks...............

After you get there, turn off the recorder and go to the VBE to see what you
got.........sometimes you can directly replace a fixed value with something
like Range("b3").Value .........................

hth
Vaya con Dios,
Chuck, CABGx3



"coeus" wrote in message
...
I'm somewhat comfortable writing the VBA, I just dont know how to use it

to
connect to my oracle db

"CLR" wrote:

It's not real friendly in that way........you'll have to get into some

pretty
intense VBA programming if you want to do much of that..........you

might try
going through the steps manually one-time with the Macro Recorder turned

on
and see what you get....sometimes it's clear enough to be editable.


hth
Vaya con Dios,
Chuck, CABGx3



"coeus" wrote:

Unfortunately, I can't seem to figure out how to call on values from

Excel
cells to insert into the queries written in the Query Wizard.

"CLR" wrote:

You can do Data GetExternalData CreateNewQuery and follow the

menus.
You must however, have specific access and Rights to the database or

it won't
work.

hth
Vaya con Dios,
Chuck, CABGx3



"coeus" wrote:

Hi,
The problem I am trying to solve is acessing an oracle database

and excecute
a query through an excel cell.

The query would be as follows: select count(XXX_ID) from

XXX.YYY_YYY where
AAA in (Excel cell B2) and CCC in (Excel cell G2);

Is is possible to execute such a query, and capture variable info

from
another excel cell?

Thanks for any help!



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Accessing oracle database through excel cell

The QueryMaster file on Debra Dalgleish's website might be a good starting
point for you. The VBA is already done. All you need to do is enter the SQL
(which can reference another cell).

http://www.contextures.com/excelfiles.html#External

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"coeus" wrote:

Hi,
The problem I am trying to solve is acessing an oracle database and excecute
a query through an excel cell.

The query would be as follows: select count(XXX_ID) from XXX.YYY_YYY where
AAA in (Excel cell B2) and CCC in (Excel cell G2);

Is is possible to execute such a query, and capture variable info from
another excel cell?

Thanks for any help!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get data from Oracle Database to Excel? David Willis New Users to Excel 1 March 31st 06 01:57 PM
resetting last cell jagdish.eashwar Excel Discussion (Misc queries) 11 March 31st 06 02:06 AM
Can I copy a table from Word into one cell in Excel without losing data? (Office 97) [email protected] Excel Discussion (Misc queries) 2 November 29th 05 07:22 PM
Howto use excel cell value to lookup an oracle table Andre Excel Discussion (Misc queries) 0 April 5th 05 09:44 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 07:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"