Hello guys
What is wrong with this code ?
Thank you very much in advanceintContractCount = Nz(DCount("PaymentID", "Payments", "PaymentDate= Between DateAdd('d',-60,Date()) And DateAdd('m',-2,Date())"), 0)
Hello guys
What is wrong with this code ?
Thank you very much in advanceintContractCount = Nz(DCount("PaymentID", "Payments", "PaymentDate= Between DateAdd('d',-60,Date()) And DateAdd('m',-2,Date())"), 0)
The comma shouldn't be there. Perhaps I should have said:
"Between" or "=" not both.
Thank you my friend pbaldy
No problem, sorry for being unclear.