Re: hard code the database path in connection string
From: MikeB (m.byerleyATVerizonDottieNettie)
Date: 02/16/05
- Next message: Bob Butler: "Re: hard code the database path in connection string"
- Previous message: Veign: "Re: newbie - get memory error message when close .exe"
- In reply to: Veign: "Re: hard code the database path in connection string"
- Next in thread: Bob Butler: "Re: hard code the database path in connection string"
- Reply: Bob Butler: "Re: hard code the database path in connection string"
- Reply: Veign: "Re: hard code the database path in connection string"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 16 Feb 2005 12:58:52 -0500
"Veign" <NOSPAMinveign@veign.com> wrote in message
news:Oj7cFwEFFHA.1296@TK2MSFTNGP10.phx.gbl...
> Options: Make it a setting that the user can change or Use a DSN where the
> DSN name would be in code and the DSN setup would control the access to the
> database.
I believe the most trouble free would be DSN-Less and the path in an INI
file....
> --
> Chris Hanscom - Microsoft MVP (VB)
> Veign's Resource Center
> http://www.veign.com/vrc_main.asp
> --
>
> "Newbee Adam" <NewbeeAdam@discussions.microsoft.com> wrote in message
> news:225C6091-8E34-4B7E-82AE-EADBD63C96B3@microsoft.com...
> > my front end vb6 app will be distributed to users in a corpoarate office.
> the
> > front end will connect to an access 2000 db on shared common company
> drive.
> >
> > How do I make it so by default it points to for example drive
> > G:\Common\GroupLookUp.mdb
> >
> > but if some knuckle head down the road deletes or moves the database or
> > names their mapped drive L: for example, how can I make an error not come
> up
> > but yet a drive dialog box comes up and asks them where to find the
> database.
> >
> > I already have the code for this it is in the error handler code, but I do
> > not want this
> > file/drive dialog box to come up everytime. How can I save the path info
> > once the user changes it. With my limited experience, I can only think to
> > savethe path string in a .dat ot txt. file and replace the path variable
> > everytime. opening, writing, closing the file every time.
> >
> > Am I taking the wrong approach. Is there a much simpler solution or am I
> or
> > the right track.
> > thanks!!
> > --
> > Adam S
>
>
- Next message: Bob Butler: "Re: hard code the database path in connection string"
- Previous message: Veign: "Re: newbie - get memory error message when close .exe"
- In reply to: Veign: "Re: hard code the database path in connection string"
- Next in thread: Bob Butler: "Re: hard code the database path in connection string"
- Reply: Bob Butler: "Re: hard code the database path in connection string"
- Reply: Veign: "Re: hard code the database path in connection string"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|