4
4charity
I am fairly new to programming, and have been struggling through this code.
It seems like it should be pretty easy.
I have a field called [SystemID] in my tblInvoiceDetail Table. If the field
is not populated from a feed of data, it is designated as a Vendor Invoice
(ion the [TypeofInvoice] field, and I need to automatically assign an ID
number. The number should start with the letter "V", to indicate that it is a
manually entered Vendor number.
I have been attempting to do this as a BeforeUpdate on the Form, starting
with:
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Me.TypeOfInvoice = "Vendor Invoice" Then
????????????????????????????????????????
End If
End Sub
I have tried various things in the ???????? space. Can anyone help me out?
It seems like it should be pretty easy.
I have a field called [SystemID] in my tblInvoiceDetail Table. If the field
is not populated from a feed of data, it is designated as a Vendor Invoice
(ion the [TypeofInvoice] field, and I need to automatically assign an ID
number. The number should start with the letter "V", to indicate that it is a
manually entered Vendor number.
I have been attempting to do this as a BeforeUpdate on the Form, starting
with:
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Me.TypeOfInvoice = "Vendor Invoice" Then
????????????????????????????????????????
End If
End Sub
I have tried various things in the ???????? space. Can anyone help me out?