D
deodev
I have a table with a range of dates. I would like to select the minimum
date and assigned it to a label on a report when the report is opened.
the code I currently have is giving me a type mismatch on the :set myset =
....
dim mydb as database
dim sqlquery as string
dim myset as recordset
set mydb =dbengine.workspaces(0).databases(0)
sqlquery ="select min([startdate]) from perioddates"
set myset =mydb.openrecordset(sqlquery)
and I am assuming that I can then
use mydate = myset![startdate]
and assign the variable mydate to the label on the report.
Help!!
Thanks
date and assigned it to a label on a report when the report is opened.
the code I currently have is giving me a type mismatch on the :set myset =
....
dim mydb as database
dim sqlquery as string
dim myset as recordset
set mydb =dbengine.workspaces(0).databases(0)
sqlquery ="select min([startdate]) from perioddates"
set myset =mydb.openrecordset(sqlquery)
and I am assuming that I can then
use mydate = myset![startdate]
and assign the variable mydate to the label on the report.
Help!!
Thanks