Article ID: 129302
Article Last Modified on 11/6/2000
Sub Form_Load (Cancel As Integer)
' Set the DefaultEditing property to the value passed in the
' OpenArgs argument.
Me.DefaultEditing = Me.OpenArgs
End Sub
Sub Form_Load ()
Dim iSemicolon As Integer
Dim iDefaultEditing As Integer
Dim sWhereCondition As String
' Find the semicolon.
iSemicolon = InStr(Me.OpenArgs, ";")
' If the semicolon is found...
If iSemicolon > 0 Then
'...parse the DefaultEditing property and WhereCondition
'argument...
iDefaultEditing = Left(Me.OpenArgs, iSemicolon - 1)
sWhereCondition = Mid(Me.OpenArgs, iSemicolon + 1)
'...and set the DefaultEditing property and WhereCondition
'argument.
Me.DefaultEditing = iDefaultEditing
If sWhereCondition <> "" Then
DoCmd ApplyFilter , sWhereCondition
End If
End If
End Sub
Keywords: kbbug kbusage KB129302