L
Lincoln Beachy
I need help badly...
I have a form with unbound fields and a combo box that is linked to a
table, that table is called units. When I selected an option in that
combo it brings up an Run time error '2455'
You entered an expression that has an invalid reference to the property
Dirty. I select debug. It will bring up the code.
Here is the code::::
Private Sub Units_AfterUpdate()
Dim rs As DAO.Recordset
If Not IsNull(Me.Units) Then
'save before move.
If Me.Dirty Then
Me.Dirty = False
End If
'Search in the clone set.
Set rs = Me.RecordsetClone
rs.FindFirst "[units] = " & Me.Units
If rs.NoMatch Then
MsgBox "Not Found: Filtered?"
Else
'Display the found Record in the form
Me.Bookmark = rs.Bookmark
End If
Set rs = Nothing
End If
End Sub
Do not send me an email the one that is showing. If you are going to
send an email, sent it to (e-mail address removed)
I have a form with unbound fields and a combo box that is linked to a
table, that table is called units. When I selected an option in that
combo it brings up an Run time error '2455'
You entered an expression that has an invalid reference to the property
Dirty. I select debug. It will bring up the code.
Here is the code::::
Private Sub Units_AfterUpdate()
Dim rs As DAO.Recordset
If Not IsNull(Me.Units) Then
'save before move.
If Me.Dirty Then
Me.Dirty = False
End If
'Search in the clone set.
Set rs = Me.RecordsetClone
rs.FindFirst "[units] = " & Me.Units
If rs.NoMatch Then
MsgBox "Not Found: Filtered?"
Else
'Display the found Record in the form
Me.Bookmark = rs.Bookmark
End If
Set rs = Nothing
End If
End Sub
Do not send me an email the one that is showing. If you are going to
send an email, sent it to (e-mail address removed)