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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
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.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,731
Members
448,987
Latest member
marion_davis

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
Back
Top