Update Oracle table with Excel

tonbalits

New Member
Joined
Jan 7, 2005
Messages
2
Hi guys,

I need help in creating a macro to update Oracle table using Excel worksheet or source of information where I can find some idea of how to do it. For Example:

A user entered 'CA' on cell A1(State column), the macro will open the Oracle Customer table and change the Salesrep field to "Joe Adams" for all rows that has "CA" on the state field and then commit the rows in oracle before closing the table.

Thank you for your assistance.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

zilpher

Active Member
Joined
Mar 27, 2003
Messages
442
Hi tonbalits

Welcome to the board

Search this board for Oracle or ADO, there are many examples of how to update databases from excel.

You'll need some particular SQL, something *like* this:

update customer set salesrep = "Joe Adams" where state = "CA"

commit will be a method of the ado object you create.
 

Watch MrExcel Video

Forum statistics

Threads
1,129,801
Messages
5,638,437
Members
417,025
Latest member
MusterDuster

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top