G
Guest
Check Selected Records
I need to check a box “SpecialPrint†in records that I have selected using
the record selectors. I have 7000+ records in a table and need to check the
records that I want to print, edit, and more. After I check the records I
run them through several query’s and do general work with the records, after
I am done I run a query to uncheck all records. Someone gave me this (see
below), it checks the last set of filtered records and it works fine but I
don’t always want all the records from the last filter. My last filter may
produce 415 records but I may only want to check 400. So, I need to check
the highlighted records. Currently, I use the below procedure and manually
uncheck the last 15 records.
I would say I am above beginner and below expert so if you can respond try
to shoot for my level so I understand what to do.
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
If (Len(Me.Filter) > 0) Then
CurrentDb().Execute "UPDATE " & Me.RecordSource & " SET SpecialPrint = "
& True & " WHERE " & Me.Filter, dbFailOnError
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
Else
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
End If
Exit Sub
I need to check a box “SpecialPrint†in records that I have selected using
the record selectors. I have 7000+ records in a table and need to check the
records that I want to print, edit, and more. After I check the records I
run them through several query’s and do general work with the records, after
I am done I run a query to uncheck all records. Someone gave me this (see
below), it checks the last set of filtered records and it works fine but I
don’t always want all the records from the last filter. My last filter may
produce 415 records but I may only want to check 400. So, I need to check
the highlighted records. Currently, I use the below procedure and manually
uncheck the last 15 records.
I would say I am above beginner and below expert so if you can respond try
to shoot for my level so I understand what to do.
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
If (Len(Me.Filter) > 0) Then
CurrentDb().Execute "UPDATE " & Me.RecordSource & " SET SpecialPrint = "
& True & " WHERE " & Me.Filter, dbFailOnError
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
Else
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
End If
Exit Sub