Results 1 to 2 of 2
  1. #1
    italianfinancier is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    25

    How do I get my Report to only show data on a certain customer?

    I made a report that I want to only show data on a particular customer (based on a customer number that a user enters). How do I do that?

  2. #2
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    Quote Originally Posted by italianfinancier View Post
    I made a report that I want to only show data on a particular customer (based on a customer number that a user enters). How do I do that?
    Like this:

    DoCmd.OpenReport "ReportName", acPreview,,"CustomerNoFieldName=" & Me!FieldName

    Just replace the following:

    ReportName = the name of the report

    CustomerNoFieldName = the name of the customer no field in the report recordset

    FieldName = name of the field where the user chooses a customer

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Getting Reports to show only certain data
    By CR08RTS in forum Reports
    Replies: 3
    Last Post: 03-03-2011, 05:43 AM
  2. Customer History Tabular Report
    By avarusbrightfyre in forum Reports
    Replies: 0
    Last Post: 03-02-2011, 04:54 PM
  3. Show label on report only if data in field
    By senna in forum Reports
    Replies: 1
    Last Post: 01-31-2011, 06:11 AM
  4. Subform will not show data
    By Brian62 in forum Forms
    Replies: 2
    Last Post: 02-19-2010, 10:43 AM
  5. how to show all data in this querey
    By grad2009 in forum Queries
    Replies: 3
    Last Post: 02-08-2010, 07:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums