M
Mark Kubicki
If someone could simply tell me if I'm in the right direction
- i have a table [ReportList] with 2 fields: [ReportCommonName] and
[ReportName]
- on a form, i have a combobox: cboReportSelect with [ReportCommonName] as
its datasource
- the user's selection in the cbo will determine what [ReportName] will be
used in in a "print report" command
- i think i need to set up a global variable [vReportName] and assign to it
the value of the [ReportName] where [ReportCommonName] = cboReportSelect
- i am trying to use this line of code:
vReportName = DLookup("[ReportName]", "ReportList",
"[ReportCommonName] = cboReportSelect.value")
(but am not having much luck)
- i would then use the variable in a line of code something like this:
Dim blRet As Boolean
blRet = ConvertReportToPDF("vReportName", vbNullString, "temp.pdf",
False, True, 0, "", "", 0, 0)
thanks in advance,
mark
- i have a table [ReportList] with 2 fields: [ReportCommonName] and
[ReportName]
- on a form, i have a combobox: cboReportSelect with [ReportCommonName] as
its datasource
- the user's selection in the cbo will determine what [ReportName] will be
used in in a "print report" command
- i think i need to set up a global variable [vReportName] and assign to it
the value of the [ReportName] where [ReportCommonName] = cboReportSelect
- i am trying to use this line of code:
vReportName = DLookup("[ReportName]", "ReportList",
"[ReportCommonName] = cboReportSelect.value")
(but am not having much luck)
- i would then use the variable in a line of code something like this:
Dim blRet As Boolean
blRet = ConvertReportToPDF("vReportName", vbNullString, "temp.pdf",
False, True, 0, "", "", 0, 0)
thanks in advance,
mark