Hi,
I have 2 subform, once the data is changed in subform2, it will requery the subform 1 to the current date, but my subform 2 keep bringing back to the first record.
Here is my code to change the date in the subform 1:
How can I make my cursor to go to the next field in the record of that subform 2?
Thanks
I have 2 subform, once the data is changed in subform2, it will requery the subform 1 to the current date, but my subform 2 keep bringing back to the first record.
Here is my code to change the date in the subform 1:
Code:
Private Sub first_name_AfterUpdate()
If Me.first_name <> Nz(Me.first_name.OldValue) Then
sId= Nz(Me.id)
sSql = "UPDATE tbl_name " & _
"SET [eff_date] = Date() " & _
"WHERE [id] = " & sId & ""
CurrentDb.Execute sSql, dbFailOnError
Form_frm_main.sf_subform1.Requery
End If
End Sub
How can I make my cursor to go to the next field in the record of that subform 2?
Thanks