Access XP
Access 2002 format.
I have a subform on a tab control. The subform has the following
code (error trapping removed to make post shorter)... When I close the
parent form it goes 100% as designed UNLESS I have used one of the sort
buttons to sort the sub form on any given field. If I do sort, there is
a delay fo about 5 seconds until after the parent form closes and the
previous form re-opens. It appears that there may be some sort of save
going on. I don't want the sub form saved. I want it to simply close
along with the parent form and return to the previous form.
First, do you follow waht I just attempted to describe (I am not
all that good at describing situations sometimes)? Second, is there a
way to eliminate this delay?
Thanks,
DB
----- CODE -----
Private Sub Form_Open(Cancel As Integer)
On Error GoTo Err_Form_Open
Me.OrderByOn = True
End Sub
'Sorts on the Requested Field.
Private Sub bSortAscending_Click()
Screen.PreviousControl.SetFocus
Me.OrderBy = Screen.ActiveControl.ControlSource
End Sub
'Sorts on the Requested Field Descending.
Private Sub bSortDescending_Click()
Screen.PreviousControl.SetFocus
Me.OrderBy = Screen.ActiveControl.ControlSource & " DESC"
End Sub
----- CODE -----