Results 1 to 2 of 2
  1. #1
    Ada01 is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    8

    "Label" field according to parameter query

    I have created a query to track a sales contest. the contest has three departments and two types of contests (cash and trip) all selling the same products but for different date ranges. the final report is a snap shot for current reporting period for each department.



    Dept 1 with a date parameter of BETWEEN "01/01/2014" AND [Enter End Date for Dept 1 Cash Contest] "Criteria"
    Dept 1 with a date parameter of BETWEEN "01/01/2014" AND [Enter End Date for Dept 1 Trip Contest] "OR"

    is it possible in the next field in the Query to label the Cash parameter with the word cash and the trip with trip. These are currently separate queries and i want to bring them together so i can pivot on the "cash" and "trip"

    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Create fields in query with expression. Static value is a very simple expression:

    In the Cash query, try:
    ContestType: "Cash"

    In the Trip query, try:
    ContestType: "Trip"

    How do you plan to 'bring them together' - UNION query?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 2
    Last Post: 01-18-2014, 08:42 PM
  2. Replies: 3
    Last Post: 04-22-2013, 06:08 AM
  3. Export "Query or Report" to a "Delimited Text File"
    By hawzmolly in forum Import/Export Data
    Replies: 3
    Last Post: 08-31-2012, 08:00 AM
  4. Replies: 16
    Last Post: 07-22-2011, 09:23 AM
  5. "Like" Parameter Query - St., St, or Saint?
    By socialc in forum Queries
    Replies: 2
    Last Post: 04-09-2011, 05:34 PM

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