Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2010
    Posts
    7

    problem displaying data in report

    Hi,

    I have created a query relating to extracting data:

    Code:
     
    SELECT Count(Output.Source) AS CountOfAPPROACH_CODE
    FROM [Output]
    WHERE (((Output.Source)=60681));
    I have also created another query for source codes 60682 and 60683.

    When I use the report wizard I get 3 seperate reports for each number, but this is no good.

    A semi-solution is to do a UNION query and create a report from that:

    Code:
    SELECT Count(Output.Source) AS CountOfAPPROACH_CODE
    FROM [Output]
    WHERE Output.Source=60681
    UNION
    SELECT Count(Output.Source) AS CountOfAPPROACH_CODE
    FROM [Output]
    WHERE Output.Source=60682
    UNION SELECT Count(Output.Source) AS CountOfAPPROACH_CODE
    FROM [Output]
    WHERE Output.Source=60683;
    but then I cannot adjust the text box to add additional information around this.

    This does not seem to work manually through the expression builder with two text boxes referring to different queries. I get an
    Code:
    #Error
    message if I try to change things in the control source of the second text box.

    Any ideas?


    Thanks

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    one query is enough:
    SELECT output.source,Count(Output.Source) AS CountOfAPPROACH_CODE
    FROM [Output]
    WHERE Output.Source in (60681,60682,60683) group by output.source

  3. #3
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    well a Report has a record source. i.e. a query - that query in turn typically has multiple records.

    the native layout of all dbs is that the records will show stacked , linear - so depending on the layout of the report they could be all on one page, or on separate pages but still conceptually linear.

    an attempt to go horizontal layout means either using crosstab techniques...or making separate individual subreports, each with their own record source - and then inserting them into a main report that serves the purpose of simply gathering together the subreports.

    hope this helps.

  4. #4
    Join Date
    Mar 2010
    Posts
    7
    OK, but I'm still having problems with this in report form.

    I'm unable to split up the figures with three different new labels as the report will show me the same label for the three source figures.

    How could I have a different label for each source figure, ie. 60681,60682 and 60683?

  5. #5
    Join Date
    Mar 2010
    Posts
    7
    Got the above reply as I was replying to the first. A 3 minute delay...

    an attempt to go horizontal layout means either using crosstab techniques...or making separate individual subreports, each with their own record source - and then inserting them into a main report that serves the purpose of simply gathering together the subreports.
    Could you explain to me how I could do this?

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

Similar Threads

  1. Displaying Hierarchical data
    By Gerry in forum Programming
    Replies: 10
    Last Post: 04-17-2010, 06:50 PM
  2. Replies: 0
    Last Post: 03-24-2010, 12:51 AM
  3. Displaying All Tables in Report
    By vCallNSPF in forum Reports
    Replies: 4
    Last Post: 12-07-2009, 03:45 PM
  4. Displaying data in Access from SQL
    By BeckyAccess in forum Queries
    Replies: 0
    Last Post: 06-30-2009, 01:57 PM
  5. Displaying data formatted
    By Zoroxeus in forum Forms
    Replies: 0
    Last Post: 03-14-2006, 09:45 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