Minh Tiên > 29-04-14, 09:00 AM
Dim rst As Recordset
Set rst = Me.RecordsetClone
rst.FindFirst "[Sophieu]='" & Me.txtSophieu & "'"
If Not rst.EOF Then Me.Bookmark = rst.Bookmark
Dim rst As Recordset
Set rst = Me.frmXeDH_CapXangDau_ListPhieu.Form.RecordsetClone
rst.FindFirst "[Sophieu]='" & Me.txtSophieu & "'"
If Not rst.EOF Then Me.Bookmark = rst.Bookmark
Minh Tiên > 29-04-14, 03:22 PM
...
DoCmd.GoToControl "Subform"
Me.Subform!Textbox.SetFocus
If IsNull(Form!Subform!Textbox) = False Then
DoCmd.GoToRecord , , acFirst
Do Until IsNull(Form!Subform!Textbox) = True
If Me.Subform!Textbox = Me.TextboxX Then
Me.Subform!Textbox.SetFocus
Exit sub
End If
DoCmd.GoToRecord , , acNext
Loop
End If
nguyentung > 03-04-18, 11:37 AM