Oracle and SQL Server use different Provider and SQL strings anyway. For example, if you want to connect to SQL Server, you would do this:
Set cn = New ADODB.Connection
cn.Open "Provider=SQLOLEDB;Data Source=ServerName;Initial Catalog=DatabaseName;UID=username;PWD=password"
Then: "SELECT * FROM MyTable"
To connect to Oracle:
Set cn = New ADODB.Connection
cn.Open "Provider=msdaora;Data Source=Instance.Domain;User ID=UserID;Password=password;"
Then: "SELECT * FROM schema.MyTable"
Etc. So syntax is always going to be an issue when you change the back end.
I would do what you need to do for the current front end/back end, and then rewrite as needed if and when a new front end/back end combination is needed.
Did that help?
mmcdonal
Look it up at:
http://wrox.books24x7.com