Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Connect Data Control to Access 97 secured DB via MDW file ..

 
   Database Help (Home) -> Visual Basic -> DAO RSS
Next:  error 3265  
Author Message
Pete56

External


Since: Sep 29, 2004
Posts: 5



(Msg. 1) Posted: Wed Mar 02, 2005 5:27 am
Post subject: Connect Data Control to Access 97 secured DB via MDW file using DA
Archived from groups: microsoft>public>vb>database>dao (more info?)

Re VB 6.0 & Access 97
I am using the MS Data Control on a form which I need to refresh each time
the user enters criteria. The DB is secured via an MDW file.

Could someone please provide an example, using DAO, with a solution to
connect the Data Control to an 'ever changing' dataset, returned from this
secured DB - assuming this is possible.

Many thanks.

 >> Stay informed about: Connect Data Control to Access 97 secured DB via MDW file .. 
Back to top
Login to vote
Pete56

External


Since: Sep 29, 2004
Posts: 5



(Msg. 2) Posted: Wed Mar 02, 2005 7:43 am
Post subject: RE: Connect Data Control to Access 97 secured DB via MDW file using DA [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sussed it with the following;

DBEngine.SystemDB = "<Path to mdw file>"

Set ws = CreateWorkspace("", "Username", "Password", dbUseJet)

Set db = ws.OpenDatabase("<Path to mdb file>")

Set rs = db.OpenRecordset("SELECT ...")

Set Data1.Recordset = rs

Pete

> Re VB 6.0 & Access 97
> I am using the MS Data Control on a form which I need to refresh each time
> the user enters criteria. The DB is secured via an MDW file.
>
> Could someone please provide an example, using DAO, with a solution to
> connect the Data Control to an 'ever changing' dataset, returned from this
> secured DB - assuming this is possible.
>
> Many thanks.

 >> Stay informed about: Connect Data Control to Access 97 secured DB via MDW file .. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Strange Data Control problem - Hi all, if anyone can shed some light on this I'd be very happy! I have an large application which uses the DAO version that is loaded on the users system (normally 3.6). There are currently over 300 users of the application and it would appear that....

Using Jet data control to write numbers to an excel spread.. - Hi, I'm currently using the vb data controls to write numbers to excel spreadsheets using the Jet driver. Unfortunately, even though the data being sent to the spreadsheet is numbers, excel has a nasty habit of showing them as text, requiring them t...

Error conneecting to Access "Cannot Start Your Application.. - I can connect to the database manually, by starting it and entering my login info, but I still get that error. Here is my code: Sub SetUpConnection() On Error GoTo ErrHandler Set adoCN = New Connection adoCN.Provider =..

paradox connect - What is the connect string to connect to paradox.dsn (odbc)?

PostgresSQL connect string - Hi does any one out there know how to build the Postgres SQL connect string for ADO connection? thanks any one who can help. -- George @ Lexington
   Database Help (Home) -> Visual Basic -> DAO All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]