L
LA Lawyer
I am trying to use a form to open a report reporting only the charges since
the customer last paid a bill. Access 2007 fails when I try to determine
the LastPaymentDate by the CaseID number and confirming that this is a
payment. Here is my code (which fails on the asterik):
Dim LastPaymentDate As Date
* LastPaymentDate = DMax("MainDate", "CaseItems", "CaseItemType =
'Payment by Client' and CaseID= " & CaseIDNumber)
'MsgBox LastPaymentDate
DoCmd.OpenReport "Bills Report", acViewPreview, , "CaseID =" &
CaseIDNumber & " AND MainDate >= #" & LastPaymentDate & "#"
What am I doing wrong?
the customer last paid a bill. Access 2007 fails when I try to determine
the LastPaymentDate by the CaseID number and confirming that this is a
payment. Here is my code (which fails on the asterik):
Dim LastPaymentDate As Date
* LastPaymentDate = DMax("MainDate", "CaseItems", "CaseItemType =
'Payment by Client' and CaseID= " & CaseIDNumber)
'MsgBox LastPaymentDate
DoCmd.OpenReport "Bills Report", acViewPreview, , "CaseID =" &
CaseIDNumber & " AND MainDate >= #" & LastPaymentDate & "#"
What am I doing wrong?