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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ODBC Call is failing. No real reason why...

Status
Not open for further replies.

IamCornholio

Programmer
Jan 26, 2007
16
US
I'm trying to run a query that pushes to an oracle table. Since Access tends to hold onto its initial connection string, the string for the table I'm pushing to doesn't get refreshed and the permissions reset (changes UID and PWD to give me Update/Insert priveledges).

My code is:

[blue]
Dim db As Database
Dim LSProc As QueryDef
Dim strSQL As String

strSQL = "Insert Query Goes here"

Set db = CurrentDb()
Set LSProc = db.CreateQueryDef("")
LSProc.Connect= "xx-Copied connection string from table properties-xx"
LSProc.ReturnsRecords = False
LSProc.SQL = strSQL
LSProc.Execute
Set LSProc = Nothing
[/blue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top