i have a subform which displays images (one at a time) that are related to the parent
the image record has a field indicating whether they are "a detail" or not
the default sort order is to show all of the details first (one at a time)
(the user has a "next"and "previous" buttons to scroll through all of the records / images
some users don't want to see the "detail" images first, they want to start with the "not detail" images
then be able to "previous" back to the 'details' (if there are any) (and then continue to "next / previous" in the usual manner)
i though, base on a variable SkipPastDetailsYN, i could set up code to do exactly that
but instead of advancing through the records of the subform, it is advancing through records of its parent
any suggestions will be greatly appreciated in advance,
m.
Code:
If DCount("[type]", "tbeAdditionalPages", "[type]= '" & Me.Type & "'") > 0 Then
If Len(Me.txtCatalogSheetLink) > 0 Then
vlink = Mid(Me.txtCatalogSheetLink, 2, Len(Me.txtCatalogSheetLink) - 1)
'this is the code that i am having troubles with:
If Me.IsMountingDetail And blnSkipPastDetailsYN = True Then
'tried adding
' me.setfocus
'without sucess...
DoCmd.GoToRecord , , acNext
End If