W
Wylie
I'm trying to shift focus out of a continuous subform back to a control
on the mainform when the user tabs off the last record. However, I'm
get type mismatch error on "If Me.Bookmark = RS.Bookmark Then" that I
can't figure out. Both parent and child forms are bound to Sql Server
tables linked into to Access.
(on control in subform)
Private Sub Field_Value_KeyPress(KeyAscii As Integer)
If KeyAscii = 9 Or KeyAscii = 13 Then
Dim RS As Recordset
Set RS = Me.Recordset.Clone
RS.MoveLast
If Me.Bookmark = RS.Bookmark Then
Forms!Devices!Device_Notes.SetFocus
End If
End If
End Sub
thanks,
wylie
on the mainform when the user tabs off the last record. However, I'm
get type mismatch error on "If Me.Bookmark = RS.Bookmark Then" that I
can't figure out. Both parent and child forms are bound to Sql Server
tables linked into to Access.
(on control in subform)
Private Sub Field_Value_KeyPress(KeyAscii As Integer)
If KeyAscii = 9 Or KeyAscii = 13 Then
Dim RS As Recordset
Set RS = Me.Recordset.Clone
RS.MoveLast
If Me.Bookmark = RS.Bookmark Then
Forms!Devices!Device_Notes.SetFocus
End If
End If
End Sub
thanks,
wylie