also take a look at http://www.connectionstrin
Main Topics
Browse All TopicsI have tried to connect to a network sql database with vba in excel 2003 with no success. I have seen several examples on this site buy none seem to work. I can connect to the database from the excel side. A sample code to connect to a sql database set up as traverse_wmc thru odbc with initial catalog wmc with user id and password saved in the script. I also need an example of a select statement to set a variable to "assemblyid from tblmporder where orderno=31" . Any help is greatly appreciated.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
also take a look at http://www.connectionstrin
in adobe Database connections must be either through an ODBC connection or the form must be certified in Acrobat. This is due to security concerns. You can view the Help topic "To create a data connection to an OLE database" for more info.
also you could try select Advanced -> Sign & Certify. You will need a Digital ID. Acrobat Help has more info on this under "Digital Signatures", "Signing PDFs", "Certify a PDF".
Is this in Excel VBA?
You need to add a reference to ADO. To do this, from the VBA Editor:
- Tools... References...
- Find Microsoft ActiveX Data Objects 2.8 Library and tick it
- Click OK.
If you haven't got the above library, you'll have one of a different version, so choose that. Though if it is earlier, it would be worth downloading the latest MDAC.
Business Accounts
Answer for Membership
by: purplepomegranitePosted on 2009-02-06 at 12:58:43ID: 23574150
The code below shows how to use ADO (you may need to add a reference to Microsoft ActiveX Data Objects in Excel VBA) to connect to either an Access (Jet) database or a MSSQL database (use whichever connection string is appropriate, modified accordingly).
If you are having problems, it would be helpful to post any error messages and any code you are currently trying.
Select allOpen in new window