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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
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,216,496
Messages
6,130,984
Members
449,612
Latest member
geniusufo007

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