I don't think you can use DAO to connect to anything other than a Jet datasource. You need to use ADO to connect to Oracle and SQL Server. I use this code to establish a connection to Oracle:
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim sSQL As String
Set cn = New ADODB.Connection
With cn
.CursorLocation = adUseClient
End With
cn.Open "Provider=msdaora;Data Source=OracleServerName.DomainName;User ID=UserID;Password=password;"
sSQL = "SELECT * FROM OracleDatabaseName.TableName"
Set rs = New ADODB.Recordset
rs.Open sSQL, cn, adOpenDynamic, adLockOptimistic
etc.
Did that help any?
mmcdonal
Look it up at:
http://wrox.books24x7.com