I'm using Access 2007, accdb format.
I have been tasked with adding a script that used to be run against an Oracle table to now run this in Access. I have the table linked inside of the Access database. The script runs around 40 updates on two fields depending on other column values. Can I call a procedure in Oracle to update the table from Access, or if I use a function as a module, I could only call it for one field correct? I would have the same problem switch, but I probably won't go that route as it would extremely long.
Script example
UPDATE PPA_JAN14_TEST
SET PPA_OE_COLUMN = NULL,
PPA_OE = NULL;
COMMIT;
UPDATE PPA_JAN14_TEST
SET
PPA_OE_COLUMN = '1',
PPA_OE = 'AFC-10'
WHERE substr(rgn_dist,1,1) = '2'
AND approp = 'XXX'
AND AFC = 'X1'
AND PPA_OE_COLUMN IS NULL;
COMMIT;
UPDATE CG_TIER_PPA_JAN14_TEST
SET PPA_OE_COLUMN = '1',
PPA_OE = 'AFC-10'
WHERE substr(rgn_dist,1,1) = '2'
AND approp = 'XXX'
AND AFC = 'X2'
AND PPA_OE_COLUMN IS NULL;
COMMIT;
and so on.........