D
Dan
can anyone tell me why this won't work:
Dim lastPaymentDate As Date
lastPaymentDate = DMax
("Date", "PaymentsReceived", "[memberNumber] = " & Me.
[Member Number])
previouspaymentnumber = DMax
("PaymentID", "PaymentsReceived", "[memberNumber] = " &
Me.[Member Number] & " AND [Date] = " & lastPaymentDate)
I have tried: format(lastPaymentDate, "mm/dd/yyyy") but
it still comes up null. I think that it must be a problem
with the format of the field [date] not being equal to
the lastPaymentDate
Dim lastPaymentDate As Date
lastPaymentDate = DMax
("Date", "PaymentsReceived", "[memberNumber] = " & Me.
[Member Number])
previouspaymentnumber = DMax
("PaymentID", "PaymentsReceived", "[memberNumber] = " &
Me.[Member Number] & " AND [Date] = " & lastPaymentDate)
I have tried: format(lastPaymentDate, "mm/dd/yyyy") but
it still comes up null. I think that it must be a problem
with the format of the field [date] not being equal to
the lastPaymentDate