G
Guest
Hi
I'm having a problem with the following code in a module (see below)
This code seems fine as per the examples I saw on internet, but I get an error sayin
that I am missing some parameters in the OpenRecordSet method. I thought the other parameters were optional
I am only trying to reach a value that is in a table in my database, if you have better ways to do it, it would be great
Please help!!
Jenn
Private Function getLastImportDate(poDB As DAO.Database) As Dat
Dim tpDate As Dat
Dim sSQL As Strin
Dim tempSet As DAO.Recordse
Set poDB = CurrentD
sSQL = "SELECT First(ImportDate) FROM TLastImportDate
Set tempSet = poDB.OpenRecordset(sSQL
tpDate = tempSet.Fields("ImportDate").Valu
tempSet.Clos
getLastImportDate = tpDat
End Functio
I'm having a problem with the following code in a module (see below)
This code seems fine as per the examples I saw on internet, but I get an error sayin
that I am missing some parameters in the OpenRecordSet method. I thought the other parameters were optional
I am only trying to reach a value that is in a table in my database, if you have better ways to do it, it would be great
Please help!!
Jenn
Private Function getLastImportDate(poDB As DAO.Database) As Dat
Dim tpDate As Dat
Dim sSQL As Strin
Dim tempSet As DAO.Recordse
Set poDB = CurrentD
sSQL = "SELECT First(ImportDate) FROM TLastImportDate
Set tempSet = poDB.OpenRecordset(sSQL
tpDate = tempSet.Fields("ImportDate").Valu
tempSet.Clos
getLastImportDate = tpDat
End Functio