J
jln via AccessMonster.com
Ok what im trying to do here is load 2 where statements. What i need it to do
as well is if CHF_CUTOFF_PERIOD is null i need it to show. but im getting an
error on what i have right now Type mismatch
Dim CurMonth As String
Dim CurMonth1 As String
Dim stDocName As String
Dim LastDayOfMonth As String
Dim strwhere As String
Dim strwhere1 As String
strwhere = ""
CurMonth = Cal
CurMonth1 = Month(CurMonth) - 1
'strwhere = strwhere & "[Investor_Number]=" & Me.txtInvNo
strwhere = strwhere & "[CHF_CUTOFF_PERIOD]=" & CurMonth1
strwhere1 = strwhere1 & "[Actual_Due_Date]=" & CurMonth
stDocName = "RPT_Daily_Cut_Off"
DoCmd.OpenReport stDocName, acViewPreview, , strwhere1 And strwhere
as well is if CHF_CUTOFF_PERIOD is null i need it to show. but im getting an
error on what i have right now Type mismatch
Dim CurMonth As String
Dim CurMonth1 As String
Dim stDocName As String
Dim LastDayOfMonth As String
Dim strwhere As String
Dim strwhere1 As String
strwhere = ""
CurMonth = Cal
CurMonth1 = Month(CurMonth) - 1
'strwhere = strwhere & "[Investor_Number]=" & Me.txtInvNo
strwhere = strwhere & "[CHF_CUTOFF_PERIOD]=" & CurMonth1
strwhere1 = strwhere1 & "[Actual_Due_Date]=" & CurMonth
stDocName = "RPT_Daily_Cut_Off"
DoCmd.OpenReport stDocName, acViewPreview, , strwhere1 And strwhere