image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old June 23rd, 2008, 09:40 AM
Registered User
 
Join Date: Jun 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
scv109 is on a distinguished road
ActiveX alternative for Excel 2004 vba

Hi All,

Definitely new to a Mac and am really confused as to how to use the ODBC functions... I have a macro that I am building to access a sql table, however I am not sure of the syntax to use....

This is where I am going wrong (I think)

Public strConnection As String
Public oCon As New ADODB.Connection
Public rsSec1 As New ADODB.Recordset
Public Counter As Double
Public StopCounter As Double
Public SQLFilter As String
Public SQL1 As String
Public strInput As String


Public Sub ServerCon()

Set oCon = New ADODB.Connection
Set rsSec1 = New ADODB.Recordset

strConnection = "PROVIDER=SQLOLEDB;DATA SOURCE=IRP_prod;user id=I*****;password=i****;"
oCon.ConnectionTimeout = 60
oCon.Open strConnection

End Sub

Can anyone convert this so I can use it on a Mac??
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 06:15 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.