G
Gordon
I am using a function (fnFileCount) that counts the number of files in
a specific folder and which have a specific file extension. I am using
this function to get a value in a text box in the report footer. It
works fine when I hard code the control source of the text box ie
= fnFilecount("T:\Administration\iT Files\Wallpapers\", "*.jpg")
However, I want to set this up so that the function will pick up the
values for the first part of the function (strFolderSpec) and the
second part (strFileExt) from values that are held in a table
(tblPathnames). I can define those variables in the open event of the
report e.g.
strFolderSpec = DLookup("fldCoverImagePathname", "tblPathnames")
but I don't know how to call this function in the control source of
the text box. Am I on the right track here or am I completely off
beam?
Thansk
Gordon
a specific folder and which have a specific file extension. I am using
this function to get a value in a text box in the report footer. It
works fine when I hard code the control source of the text box ie
= fnFilecount("T:\Administration\iT Files\Wallpapers\", "*.jpg")
However, I want to set this up so that the function will pick up the
values for the first part of the function (strFolderSpec) and the
second part (strFileExt) from values that are held in a table
(tblPathnames). I can define those variables in the open event of the
report e.g.
strFolderSpec = DLookup("fldCoverImagePathname", "tblPathnames")
but I don't know how to call this function in the control source of
the text box. Am I on the right track here or am I completely off
beam?
Thansk
Gordon