Hi,
I want to use paths stored in a table in rather then pointing to then directly. However I'm having some trouble.
The table containing the paths is "TblPaths" and is structured as follows:
ReportName DotPath
Introduction "C:\Templates\introduction.dot"
response "C:\Templates\response.dot"
The bit I'm having so problmes with is:
Dim SourcePath As String
SourcePath = DLookup("[DotPath]", "TblPaths", "[ReportName] = 'response'")
when I punch ?Sourcepath into the immediate window I just get a blance line, what I'm expecting is "C:\Templates\response.dot"
What am I doing wrong, or is DLookup the wrong way to go about this?
Regards to all.
I want to use paths stored in a table in rather then pointing to then directly. However I'm having some trouble.
The table containing the paths is "TblPaths" and is structured as follows:
ReportName DotPath
Introduction "C:\Templates\introduction.dot"
response "C:\Templates\response.dot"
The bit I'm having so problmes with is:
Dim SourcePath As String
SourcePath = DLookup("[DotPath]", "TblPaths", "[ReportName] = 'response'")
when I punch ?Sourcepath into the immediate window I just get a blance line, what I'm expecting is "C:\Templates\response.dot"
What am I doing wrong, or is DLookup the wrong way to go about this?
Regards to all.