G
Guest
Hello
I have the following expression
Me.ID = Nz(DMax("RcId", "StockInventorylog", "RC ='" & Me.RC & "'"), 0) + 1
It's purpose is to add 1 to the ID for each RC value.
When I put this expression in the Before Update event of another field in
form it works.
When i put this expression in the before insert event of the form , it
doesn't work. except for the first time. ie for Id 1 only.
Please can you help me solve this problem
I have the following expression
Me.ID = Nz(DMax("RcId", "StockInventorylog", "RC ='" & Me.RC & "'"), 0) + 1
It's purpose is to add 1 to the ID for each RC value.
When I put this expression in the Before Update event of another field in
form it works.
When i put this expression in the before insert event of the form , it
doesn't work. except for the first time. ie for Id 1 only.
Please can you help me solve this problem