A
Anne
help! Somehow my DMaxer is not!
My code is Me!MaxNum = DMax
("CRInvNum", "tbl4Receipt", "[InvNum]=[cboInvNum]")
InvNum is my invoice number.
cboInvNum is the combo box selecting the invoice to make
a payment for.
CRInvNum is a unique payment number field, double, two
decimals, derived from InvNum with decimal representing
payment interations.
Example: invoice 12345; first payment CRInvNum is
12345.01; second payment is 12345.02, etc.
The counter works and writes the file correctly. But the
code is not returning 12345.02, rather its returning
12345.01.
What can be done to ensure the highest -- 12345.02 -- is
returned?
Thanks.
My code is Me!MaxNum = DMax
("CRInvNum", "tbl4Receipt", "[InvNum]=[cboInvNum]")
InvNum is my invoice number.
cboInvNum is the combo box selecting the invoice to make
a payment for.
CRInvNum is a unique payment number field, double, two
decimals, derived from InvNum with decimal representing
payment interations.
Example: invoice 12345; first payment CRInvNum is
12345.01; second payment is 12345.02, etc.
The counter works and writes the file correctly. But the
code is not returning 12345.02, rather its returning
12345.01.
What can be done to ensure the highest -- 12345.02 -- is
returned?
Thanks.