Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle Stored Procedure

Status
Not open for further replies.

DRRAZGU

Programmer
May 21, 2002
9
0
0
US
What is the best way to call an oracle stored procedure from Access 97? I need to update an existing Oracle 9i table with data passed from VBA. Security wont let me attach the table. They will allow me to call a stored procedure to update the record.
 
build a macro to RunCode()
then add this code in a module...
Public Function DATA_PULL()

Dim MyCon As ADODB.Connection
'Dim MyDB As Database

'****************************************************************
Set MyCon = New ADODB.Connection
MyCon.ConnectionString = "DSN=PHARM92;UID=PHARM;PWD=DRUG;"
MyCon.CommandTimeout = 0

'Set MyDB = CurrentDb

'****************************************************************
MyCon.Open
MyCon.Execute ("TRUNCATE TABLE OPS.CARDS_PROCESSING;")
MyCon.Execute ("BEGIN OPS.CARDS_PULL(); END;")'Oracle Proc
MyCon.Close

Set MyCon = Nothing
'Set MyDB = Nothing


End Function


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top