G
Guest
The following code - written in a Form - and activated by double clicking a
control-button, is used to move quickly through the records in the underlying
query; which in a simple explanation, contains names e.g. Joe, Fred , Sid
etc. Each name belongs to one of three groups (group-name = "Set") i.e.
Set1,2 & 3 the purpose of having this code, is to quickly get to the
beginning of Set 2 without wading through all of Set 1
In all the Access versions prior to Office 2007 this code has worked. Now
it seems unable to recognize that the records it is passing through have
changed and careers blithely on, until an end-of- records fault is flagged up.
Anyone any ideas on whats wrong, or a workaround?
ColinG
If IsNull([Set]) = False Then
Chg& = [Set]
While [Set] = Chg&
DoCmd.GoToRecord , , acNext
Debug.Print [Set]
Wend
Forms![QueryEdit PLAY LIST]!No_within_set.SetFocus
End If
control-button, is used to move quickly through the records in the underlying
query; which in a simple explanation, contains names e.g. Joe, Fred , Sid
etc. Each name belongs to one of three groups (group-name = "Set") i.e.
Set1,2 & 3 the purpose of having this code, is to quickly get to the
beginning of Set 2 without wading through all of Set 1
In all the Access versions prior to Office 2007 this code has worked. Now
it seems unable to recognize that the records it is passing through have
changed and careers blithely on, until an end-of- records fault is flagged up.
Anyone any ideas on whats wrong, or a workaround?
ColinG
If IsNull([Set]) = False Then
Chg& = [Set]
While [Set] = Chg&
DoCmd.GoToRecord , , acNext
Debug.Print [Set]
Wend
Forms![QueryEdit PLAY LIST]!No_within_set.SetFocus
End If