Hi
I have a form with the following code
Private Sub Form_BeforeInsert(Cancel As Integer)
NUMERO = Nz(DMax("NUMERO", "CAB SOLICITUD")) + 1
End Sub
I need the Before Insert event to set another value to another field, the expression of the value is as follows:
"SP" & "-" & [LINEA NEGOCIO] & "-" & [NUMERO] & "-" & Año(Fecha())
Can anyone help by telling me how to put this in the code? I would appreciate as I am a little lost
Many thanks
I have a form with the following code
Private Sub Form_BeforeInsert(Cancel As Integer)
NUMERO = Nz(DMax("NUMERO", "CAB SOLICITUD")) + 1
End Sub
I need the Before Insert event to set another value to another field, the expression of the value is as follows:
"SP" & "-" & [LINEA NEGOCIO] & "-" & [NUMERO] & "-" & Año(Fecha())
Can anyone help by telling me how to put this in the code? I would appreciate as I am a little lost
Many thanks