T
Tony Williams
I have a control called txtrefnbr which I want to be populated by the next
number from a table tblcompnbrs providing the value of txtcd1retd is not
null I have this in the control source
=IIf(IsNull([txtcd1retd])," ",Nz(DMax("[txtnextnbr]","tblcompnbrs"),0)+1)
So if [txtcd1retd] is null the value of txtrefnbr is null, if [txtcd1retd]
is not null I want to use the next number from the next value of txtnextnbr
from the table tblcompnbrs.
However all my numbers are 1 and the value of txtnextnbr is not changing.
What am I doing wrong?
Thanks
Tony
number from a table tblcompnbrs providing the value of txtcd1retd is not
null I have this in the control source
=IIf(IsNull([txtcd1retd])," ",Nz(DMax("[txtnextnbr]","tblcompnbrs"),0)+1)
So if [txtcd1retd] is null the value of txtrefnbr is null, if [txtcd1retd]
is not null I want to use the next number from the next value of txtnextnbr
from the table tblcompnbrs.
However all my numbers are 1 and the value of txtnextnbr is not changing.
What am I doing wrong?
Thanks
Tony