M
Mattias
Hi
Have this code working ok referencing to "Objekt" as a name of a table.
I have some problems to make it work when reference the query name of the
record source for the active form.
Thank you in advance
Mattias
Private Sub Form_BeforeInsert(Cancel As Integer)
If Me.NewRecord Then
Me.Utropsnummer = DMax("Utropsnummer", "Objekt") + 1
End If
End Sub
Have this code working ok referencing to "Objekt" as a name of a table.
I have some problems to make it work when reference the query name of the
record source for the active form.
Thank you in advance
Mattias
Private Sub Form_BeforeInsert(Cancel As Integer)
If Me.NewRecord Then
Me.Utropsnummer = DMax("Utropsnummer", "Objekt") + 1
End If
End Sub