
Originally Posted by
Merkava
Hello All,
Chris was a great help with this subject. I have two questions
Sub QueryTest()
Dim qryTemp As Object
Dim rstTemp As Object
' Ordinal position of Parameter.
Const StartDate As Date = #12/1/07# ' When Defining a DATE in MS Access using the # sign to enclose the date or datetime specified.
Set qryTemp = CurrentDb.QueryDefs("qryActivityLogByDate")
qryTemp.Parameters(StartDate) = Date
Set rstTemp = qryTemp.OpenRecordset
'Personal Details
rstTemp.Close
Set rstTemp = Nothing
qryTemp.Close
Set qryTemp = Nothing
End Sub
Question #1 - I am receiving Data Type conversion error. What is this and how would I avoid ths.
Question #2 - I there a source of information in a simple format?
Thank you in advance.
Cheers,
Aaron
Code:
Const StartDate As Date = #12/1/07# ' When Defining a DATE in MS Access using the # sign to enclose the date or datetime specified.