Hi
Im using this VBA code to insert a drawing numbers for our engineers.
At the moment the form will open and you have change a field before the number appears in the txtDrawingNumber field.
What I’d like is that when the form opens the number appears in the txtGAdrawingNumber box straight away.
Im using this VBA code to insert a drawing numbers for our engineers.
Code:
Private Sub Form_BeforeInsert(Cancel As Integer)
Me.Text505 = Nz(DMax("MyCounter", "tblAttributesGA")) + 1
Me.txtGADrawingNumber = Nz(DMax("MyCounter", "tblAttributesGA")) + 1 & "-01"
End Sub
What I’d like is that when the form opens the number appears in the txtGAdrawingNumber box straight away.