Connecting to ODBC (oracle) with VBA

L

Lucky

Create SQL Pass-Through query (thus supplying logon id,
password, etc.) and create simple ADO code, something
like:

Sub PeriodicalUpdate()
Dim cnn As New ADODB.Connection
Dim strSQL As String

Set cnn = CurrentProject.Connection

StrSQL = " <enter your SQL string to make-table>"

cnn.Execute StrSQL
cnn.Close

Set cnn = Nothing

End Sub

To schedule it use form OnTimer event or Scheduled Task
(Windows) or check www.splinterware.com and download free
(or purchase) Windows Scheduler.

Hopefully this helps.

Lucky
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top