Solved

get registry

Posted on 2000-03-30
5
156 Views
Last Modified: 2010-05-02
how can i write a code to get a path from registry.
Anybody help me?
0
Comment
Question by:thg
5 Comments
 
LVL 1

Expert Comment

by:riduce
ID: 2669525
0
 

Expert Comment

by:TheMask
ID: 2669851
What do u mean by getting a path from the registry ?
0
 
LVL 7

Expert Comment

by:Vbmaster
ID: 2670155
0
 
LVL 9

Accepted Solution

by:
cymbolic earned 50 total points
ID: 2670425
here's a sample of how I saved a connection string in the registry, and then retrieved it later.  You canjust as easily save/retrieve a path/file name this way as well:
SaveSetting "PWExtract", "Database", "Con", rdoCon(Which).Connect

Con1$ = GetSetting("PWExtract", "Database", "Con")

0
 

Author Comment

by:thg
ID: 2688517
can u give me some code to get the string by using API?
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question