hi to all
i use this code but open form with a new record :
but its go to new record ......
Where is the problem in the code??
i use this code but open form with a new record :
Code:
Private Sub Form_Load()
Dim MyFilter As String
If CurrentProject.AllForms("MainFrm").IsLoaded Then
MyFilter = "Forms![MainFrm]![InsurCmpName]= " & Me.CompnyID
Me.Filter = MyFilter
Me.FilterOn = True
End If
End Sub
Where is the problem in the code??