Form ONCurrent only Else is effected
- From: Maciej Franciszkowski <maciejfr@xxxxxxxxxxxxxx>
- Date: Tue, 29 Jul 2008 05:02:40 -0700 (PDT)
Hello,
I dont know why only else part of if statement is effected when using
below
Private Sub Form_Current()
If Me.NewRecord Then
Me!nrpoz = DMax("[Nr_poz]", "[ZESTAWIENIE_MATERIALOW]",
"[Id_projektu]= '" & Me.Parent.Nr_artykulu & "'") + 1
Else
Me!nrpoz = Me!Nr_poz
End If
End Sub
Isn't it new record when entering first data to a row?
.
- Prev by Date: Re: Can't see combobox values in table lookup
- Next by Date: Re: Database properties
- Previous by thread: Database properties
- Next by thread: Creating Application Ribbons
- Index(es):