Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / September 2005

Tip: Looking for answers? Try searching our database.

INI files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dave k - 26 Sep 2005 18:56 GMT
Can Access vba create / modify / read INI files?  I would like to put some
general environment options in an INI file outside of the database so that
relinking to a backend and the various backend locations can be easier along
with some other environment variables.  If yes, can someone point me to an
example?

Thanks,
Dave
Duane Hookom - 26 Sep 2005 19:05 GMT
There is some sample code at http://support.microsoft.com/?kbid=210001 to
create an INI file.

Signature

Duane Hookom
MS Access MVP

> Can Access vba create / modify / read INI files?  I would like to put some
> general environment options in an INI file outside of the database so that
[quoted text clipped - 5 lines]
> Thanks,
> Dave
dave k - 27 Sep 2005 18:46 GMT
Thanks.  This should work in creating and files.

Dave

> There is some sample code at http://support.microsoft.com/?kbid=210001 to
> create an INI file.
[quoted text clipped - 8 lines]
> > Thanks,
> > Dave
david@epsomdotcomdotau - 27 Sep 2005 09:14 GMT
Look at GetSetting and SaveSetting.

However, these save settings in the User part of the registry,
so they don't apply if a different user is logged in to Windows.

These functions replaced the INI file functions of the same name.

(david)

> Can Access vba create / modify / read INI files?  I would like to put some
> general environment options in an INI file outside of the database so that
[quoted text clipped - 4 lines]
> Thanks,
> Dave
Douglas J. Steele - 27 Sep 2005 14:34 GMT
> Look at GetSetting and SaveSetting.
>
> However, these save settings in the User part of the registry,
> so they don't apply if a different user is logged in to Windows.
>
> These functions replaced the INI file functions of the same name.

At least, Microsoft intended them to replace INI files.

In my opinion, there's still much to be said for using INI files (or, I
suppose, XML files) to store program parameters and the like. It's far
easier to tell a user to "double click on MyFile.INI and change what's on
line 4 to..." than it is to tell them to update the registry!

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.