Hi Gang -
I have been struggling with this for a few days now and I am losing my mind so hopefully someone here will be able to give me a hand. I have two problems:
1) Is it possible to use a DSN when creating a connection string instead of listing the provider, db name, server name, password, etc...?
- I have read in a few texts (MS Access 2002 VBA by Wrox books) and other online sources that it is possible to create a connection string with ADO using a preestablished DSN instead of listing all of the connection information... Does anyone know how to do this and would it be possible to see an example?
2) Passing parameters to a stored procedure from Access 2002 has got me baffled can some explain/show example how to do this?
- I have read numerous posts on this forum/SQL Server Mag forums/ articles/white papers/etc... but for some reason I can't translate this to my db. I have created a simple stored procedure in SQL Server 2000 that does an insert on table. I want to fire this stored procedure with the On Click event of a form I have for data entry in Access 2002 and pass in a connection string 3 pieces of data (Name, Country, DOB) to the stored procedure to insert the data in the table but I cant get this to work... Any thoughts ideas?
Any/All help is appreciated.
Thanks -Kev
I have been struggling with this for a few days now and I am losing my mind so hopefully someone here will be able to give me a hand. I have two problems:
1) Is it possible to use a DSN when creating a connection string instead of listing the provider, db name, server name, password, etc...?
- I have read in a few texts (MS Access 2002 VBA by Wrox books) and other online sources that it is possible to create a connection string with ADO using a preestablished DSN instead of listing all of the connection information... Does anyone know how to do this and would it be possible to see an example?
2) Passing parameters to a stored procedure from Access 2002 has got me baffled can some explain/show example how to do this?
- I have read numerous posts on this forum/SQL Server Mag forums/ articles/white papers/etc... but for some reason I can't translate this to my db. I have created a simple stored procedure in SQL Server 2000 that does an insert on table. I want to fire this stored procedure with the On Click event of a form I have for data entry in Access 2002 and pass in a connection string 3 pieces of data (Name, Country, DOB) to the stored procedure to insert the data in the table but I cant get this to work... Any thoughts ideas?
Any/All help is appreciated.
Thanks -Kev