N
Naz
Hi
I have a form with 2 subforms on it that have queries as their source.
The main form has general employee details
The subform subfrm_details has details of absence types (sickness, maternity)
The subform frm_SubSicknessSum simply totals up the total number of absence
by type.
I have some code (see below) when someone enters the days absent, it
requery's the underlying queries and updates the summary, but the problem is
when i enter the days and press return or move to the next field, it
requery's OK, updates OK, but then moves the cursor to the record right at
the top (the first record), which gets worse if you try to enter lots of
absences as it goes to the top, and then you have to scoll back down to enter
a new record.
Private Sub NoOfDays_LostFocus()
Forms!frm_Employees!.frm_SubSicknessSum.Form.Requery
Forms!frm_Employees!.frm_SubSicknessSum.Form.Refresh
End Sub
Is there anyway the query can requery/refresh and not go back to the first
record?
All help is greatly appreciated.
Jim
I have a form with 2 subforms on it that have queries as their source.
The main form has general employee details
The subform subfrm_details has details of absence types (sickness, maternity)
The subform frm_SubSicknessSum simply totals up the total number of absence
by type.
I have some code (see below) when someone enters the days absent, it
requery's the underlying queries and updates the summary, but the problem is
when i enter the days and press return or move to the next field, it
requery's OK, updates OK, but then moves the cursor to the record right at
the top (the first record), which gets worse if you try to enter lots of
absences as it goes to the top, and then you have to scoll back down to enter
a new record.
Private Sub NoOfDays_LostFocus()
Forms!frm_Employees!.frm_SubSicknessSum.Form.Requery
Forms!frm_Employees!.frm_SubSicknessSum.Form.Refresh
End Sub
Is there anyway the query can requery/refresh and not go back to the first
record?
All help is greatly appreciated.
Jim