I am sorry to trouble you all again but I have nowhere else to turn. I 'Think' I should be able to do this but have been unable to do it. I want to put a variable in my sql statement. 
If I use a date like '#10/05/2012#' it works fine, But when I put 'ANY' variable there it bombes out. I have used text & Date Variables, but to no avail. I want to pull up records based on the date of last month. Any help would be greatly appriciated.
Im am running a laptop with Windows 7 64 and Access 2007.
\Begin code
Dim CurConn As New ADODB.Connection
Dim rst As New ADODB.Recordset
Set CurConn = CurrentProject.Connection
Dim SqlStr As String
Dim DateFirst As String
Dim DateBg As Date
DateFirst = #10/5/2012#
DateBg = CDate([DateFirst])
'SqlStr = ("SELECT ThatDate, Description FROM tblDay WHERE ThatDate < 'DateFirst' ( or "DateBG") ") 'Does Not Work
SqlStr = ("SELECT ThatDate, Description FROM tblDay WHERE (ThatDate > #10/05/2012#)") 'Works
rst.Open SqlStr, CurConn, adOpenKeyset, adLockOptimistic, adCmdText
/End code
Thank You
Don

If I use a date like '#10/05/2012#' it works fine, But when I put 'ANY' variable there it bombes out. I have used text & Date Variables, but to no avail. I want to pull up records based on the date of last month. Any help would be greatly appriciated.
Im am running a laptop with Windows 7 64 and Access 2007.
\Begin code
Dim CurConn As New ADODB.Connection
Dim rst As New ADODB.Recordset
Set CurConn = CurrentProject.Connection
Dim SqlStr As String
Dim DateFirst As String
Dim DateBg As Date
DateFirst = #10/5/2012#
DateBg = CDate([DateFirst])
'SqlStr = ("SELECT ThatDate, Description FROM tblDay WHERE ThatDate < 'DateFirst' ( or "DateBG") ") 'Does Not Work
SqlStr = ("SELECT ThatDate, Description FROM tblDay WHERE (ThatDate > #10/05/2012#)") 'Works
rst.Open SqlStr, CurConn, adOpenKeyset, adLockOptimistic, adCmdText
/End code
Thank You
Don