Share via

Using Access 2010 Problem with printing labels correctly

Anonymous
2023-10-04T13:21:40+00:00

I'm using Access 2010. i have a database. I'm only trying to print a selection from this database. The ones I have selected show up on the screen. When I generate the label and do a print preview all the labels in the database are in the file to be printed. How do I just print the selection.

Prior to me updating my computer it used to work and now its now. Any help is greatly appreciated.

Microsoft 365 and Office | Access | Other | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

10 answers

Sort by: Most helpful
  1. Anonymous
    2023-10-04T15:47:51+00:00

    From your description I take it that you have a Boolean (Yes/No) column in the table which you are using to select specific rows.  You are then filtering the table's datasheet to those rows via the Selection icon in the Sort & Filter area of the Home ribbon.  Right?

    Filtering the table's datasheet in this way will not filter the label report's RecordSource, however.  To do that the RecordSource should be a query which includes the following WHERE clause:

        WHERE [NameOfBooleanColumnGoesHere] = TRUE

    Note that, with this addition to the report's RecordSource, there is no need to filter the table's datasheet.  You merely need to update the values in the Boolean column by selecting the check box in each of the rows you wish to be returned by the label report.  You can then open the report, which will be restricted to the selected rows.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. ScottGem 68,830 Reputation points Volunteer Moderator
    2023-10-04T15:32:42+00:00

    It sounds like you have a checkbox field for Selected, but you don't say whether you are filtering the labels for that. You are filtering your form, but not necessarily the labels. What is the Recordsource for the labels?

    Was this answer helpful?

    0 comments No comments
  3. Duane Hookom 26,825 Reputation points Volunteer Moderator
    2023-10-04T15:29:20+00:00

    I’ve never experienced your method of applying the table’s filter to a report. What happens if you skip the print preview?

    I would use a form so you can use it’s filter property in the Where clause of DoCmd.OpenReport.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2023-10-04T13:56:35+00:00

    Yes "on the screen" is print preview mode

    I'm selecting within the table. I"m then Clicking the check box on the side and then on the top selecting the icon that has the funnel, with the lighting bolt. From there I'm clicking on "Is Selected"

    So at this point these names are the only ones showing up on my table.

    Was this answer helpful?

    0 comments No comments
  5. Duane Hookom 26,825 Reputation points Volunteer Moderator
    2023-10-04T13:49:53+00:00

    How are you making a “selection”? When you state “show up on the screen” is this Print Preview mode?

    There are many methods for filtering a report. I prefer using a where condition in VBA.

    Was this answer helpful?

    0 comments No comments