) + 1
If (IsNull(Forms![Quotation].Form![QuotationProducts]![Item])) Then
' If result was Null (this is the first line), set to 1
Forms![Quotation].Form![QuotationProducts]![Item] = 1
End If
Form_BeforeInsert_Exit:
Exit Sub
Form_BeforeInsert_Err:
MsgBox Error$
Resume Form_BeforeInsert_Exit
End Sub
I had a form that required the item number to reset on each new quote to a customer, this will keep adding 1 to item number until the the quote number changes then it will reset to 1, hope it helps you
Mike
[This message has been edited by Xenix (edited 11-06-2001).]