G
Guest
Hi, helpers
I have voucher no field in my form (key) which they should be entered in
order. I mean 2 after 3, 4 after 3, and so forth. I can not use auto numbers,
since by deleting a voucher ( a record) their orders become messed up.
So I created a VB function, and gave both defualt value and validation rule
to this funcion. the function counts the number of records in the form by
Recordset object's count property (Cloneset) and add one for the default and
validated value.
it works well in normal way, but when the user delet a record or goes up and
down in the form, it shows #Error Value in that feild.
I used refresh method to update the based query in the form, but it didnt
work.
what is the problem??!! and what causes this!?
thanks in advance.
I have voucher no field in my form (key) which they should be entered in
order. I mean 2 after 3, 4 after 3, and so forth. I can not use auto numbers,
since by deleting a voucher ( a record) their orders become messed up.
So I created a VB function, and gave both defualt value and validation rule
to this funcion. the function counts the number of records in the form by
Recordset object's count property (Cloneset) and add one for the default and
validated value.
it works well in normal way, but when the user delet a record or goes up and
down in the form, it shows #Error Value in that feild.
I used refresh method to update the based query in the form, but it didnt
work.
what is the problem??!! and what causes this!?
thanks in advance.