D
Douglas J. Steele
If it didn't pop up any error messages when you tried to compile, then the
option will be greyed out until you make a change and the application needs
to be recompiled. In any case, that implies that you copied the code
correctly.
What happens if you go to the Immediate window (Ctrl-G), type
?fGetSpecialFolderLocation(CSIDL_LOCAL_APPDATA)
and hit Enter? Do you get the correct path? If you do, then it would appear
you've set the field up incorrectly on your switchboard. Where exactly did
you put =fGetSpecialFolderLocation(CSIDL_LOCAL_APPDATA) for that field? (It
needs to be in the ControlSource property)
--
Doug Steele, Microsoft Access MVP
(no private e-mails, please)
option will be greyed out until you make a change and the application needs
to be recompiled. In any case, that implies that you copied the code
correctly.
What happens if you go to the Immediate window (Ctrl-G), type
?fGetSpecialFolderLocation(CSIDL_LOCAL_APPDATA)
and hit Enter? Do you get the correct path? If you do, then it would appear
you've set the field up incorrectly on your switchboard. Where exactly did
you put =fGetSpecialFolderLocation(CSIDL_LOCAL_APPDATA) for that field? (It
needs to be in the ControlSource property)
--
Doug Steele, Microsoft Access MVP
(no private e-mails, please)
Kathy Webster said:I did it, it seemed to work. Now the option is greyed out.
Douglas J. Steele said:What happens if you try to compile your application? (While you're in the
VB Editor, it's the first option on the Debug menu)
--
Doug Steele, Microsoft Access MVP
(no private e-mails, please)
Kathy Webster said:Hi Doug. Glad you are back.
I named it UserPaths.
After pasting the code in, it seems to have added "Option Compare
Database" above the first commented line of the code.
What did you name the module, Kathy?
--
Doug Steele, Microsoft Access MVP
(no private e-mails, please)
Hmm, I'm trying to display the user apps folder name in a field on the
switchboard form, just to see if it is even receiving the information.
The name of the field on the switchboard is [UserPathLocation]. I
already tried the equal sign, with the same #Name? result.
On Mon, 16 Oct 2006 17:38:33 GMT, "Kathy Webster"
-I made a field in the switchboard and set its control source to
fGetSpecialFolderLocation(CSIDL_LOCAL_APPDATA)
-The field is displaying #Name?
Use
=fGetSpecialFolderLocation(CSIDL_LOCAL_APPDATA)
This assumes that CSIDL_LOCAL_APPDATA is the name of a control on the
switchboard form which contains the information that
fGetSpecialFolderLocation needs.
John W. Vinson[MVP]