INI files

G

Guest

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
 
G

Guest

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)
 
D

Douglas J. Steele

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top