Home All Groups Group Topic Archive Search About

Using ADODB.Recordset to a DB with Workgroup Security

Author
5 Apr 2005 8:58 PM
Barmaley
I have front end Access DB with Workgroup Security and back end on SQL.
I want to use MS Word form and check (connecting to tables) if username
exist.

Will Workgroup Security prevent me to connect to the tables and if yes, how
can I work arout it?

Thank you

Author
5 Apr 2005 10:21 PM
Scott McDaniel
Do you mean your data is stored in client/server type db, like MSSQL or
MySQL? If so, then Access workgroup security has nothing to do with that.

Are you wanting to connect from the Word doc? You'd do something like this:

Dim con As New ADODB.Connection
Dim rst As New ADODB.Recordset

con.Open "SomeValidConnectStringDependingOnYourServer"
rst.Open "YourSQL", con

ADO connection source:
http://www.carlprothman.net/Default.aspx?tabid=87#OLEDBProviderForMicrosoftJet

Show quote
"Barmaley" <some***@nowhere.com> wrote in message
news:d2uu4s$hep$1@cnss.gov.ab.ca...
>I have front end Access DB with Workgroup Security and back end on SQL.
> I want to use MS Word form and check (connecting to tables) if username
> exist.
>
> Will Workgroup Security prevent me to connect to the tables and if yes,
> how
> can I work arout it?
>
> Thank you
>
>
Author
6 Apr 2005 2:37 PM
Barmaley
The reason why it workgroup security was an issue, because I was connecting
to MDB file that had linked tables to MS SQL server.
However, your link provided me with information (syntax) how to connect to
MDB with workgroup security.

This perhaps not a best method, but it was only one I knew.

Thank you for your help

Show quote
"Scott McDaniel" <scott@NO_SPAM_HEREthedatabaseplace.net> wrote in message
news:yIqdnaX68P3Eks7fRVn-3g@comcast.com...
> Do you mean your data is stored in client/server type db, like MSSQL or
> MySQL? If so, then Access workgroup security has nothing to do with that.
>
> Are you wanting to connect from the Word doc? You'd do something like
this:
>
> Dim con As New ADODB.Connection
> Dim rst As New ADODB.Recordset
>
> con.Open "SomeValidConnectStringDependingOnYourServer"
> rst.Open "YourSQL", con
>
> ADO connection source:
>
http://www.carlprothman.net/Default.aspx?tabid=87#OLEDBProviderForMicrosoftJet
Show quote
>
> "Barmaley" <some***@nowhere.com> wrote in message
> news:d2uu4s$hep$1@cnss.gov.ab.ca...
> >I have front end Access DB with Workgroup Security and back end on SQL.
> > I want to use MS Word form and check (connecting to tables) if username
> > exist.
> >
> > Will Workgroup Security prevent me to connect to the tables and if yes,
> > how
> > can I work arout it?
> >
> > Thank you
> >
> >
>
>
Author
6 Apr 2005 7:50 PM
Barmaley
Thanks again,

I just wated to post solution for direct connection to SQL I used from link
you provided:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For a Trusted Connection
oConn.Open "Provider=sqloledb;" & _
           "Data Source=myServerName;" & _
           "Initial Catalog=myDatabaseName;" & _
           "Integrated Security=SSPI"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Show quote
"Scott McDaniel" <scott@NO_SPAM_HEREthedatabaseplace.net> wrote in message
news:yIqdnaX68P3Eks7fRVn-3g@comcast.com...
> Do you mean your data is stored in client/server type db, like MSSQL or
> MySQL? If so, then Access workgroup security has nothing to do with that.
>
> Are you wanting to connect from the Word doc? You'd do something like
this:
>
> Dim con As New ADODB.Connection
> Dim rst As New ADODB.Recordset
>
> con.Open "SomeValidConnectStringDependingOnYourServer"
> rst.Open "YourSQL", con
>
> ADO connection source:
>
http://www.carlprothman.net/Default.aspx?tabid=87#OLEDBProviderForMicrosoftJet
Show quote
>
> "Barmaley" <some***@nowhere.com> wrote in message
> news:d2uu4s$hep$1@cnss.gov.ab.ca...
> >I have front end Access DB with Workgroup Security and back end on SQL.
> > I want to use MS Word form and check (connecting to tables) if username
> > exist.
> >
> > Will Workgroup Security prevent me to connect to the tables and if yes,
> > how
> > can I work arout it?
> >
> > Thank you
> >
> >
>
>

AddThis Social Bookmark Button

Post Other interesting topics