Results 1 to 2 of 2
  1. #1
    mike02 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    245

    report from crosstab query

    hey,

    I have a report from a cross tab query. I run the productID as column and then group it by Manufacturer, and sort by client

    client-Row
    Product-Column
    MDate-Row
    Manufacturer-Row
    Quantity-Value

    How can i set it up to make it robust. meaning each time i run the query it could have 5 products or 15...

    Also, I use product ID.... I want to have it show the text value of the product.

    What i have tried to do is this.... make combo boxes for labels, and make it equal certain value and have 15 run across. but this doesnt show anyvalues... any ideas? Thanks.

  2. #2
    mike02 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    245
    Ive got the labels working to be robust. now how can i set up the text boxes? this is what is happening. When i select the client, it puts the products ID in hidden values On my form.

    txt1
    txt2
    txt3
    txt4
    txt5
    txt6
    and so on.

    Now for example if i select John Doe, His products are 2,4,5,6,7 so in the text boxes that are hidden there value will be:

    txt1= 2
    txt2= 4
    txt3= 5
    txt4= 6
    txt5= 7

    so when i click my button, open report, It brings up my report.

    The values for labels are:

    =[Forms]![frmEditProducts]![txt1] (Label 1)

    Now when im stuck on trying to set up the detail section of the report. The product ids are 1-15 but instead of having 15 setup, I want to set it up to take the value from the textbox on the form to be the control source of the text box.. I thought something like this:

    =[Forms]![frmEditProducts]![txt1]

    But that just makes it = 2 (hence the value)

    How can i make it Product 2?

    The reason is because txt1 can take on any value from 1-15.

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

Similar Threads

  1. CrossTab Query - Report Issue ?
    By AndreasPanayiotou in forum Reports
    Replies: 0
    Last Post: 09-25-2012, 01:11 AM
  2. Report From CrossTab Query
    By GSS in forum Reports
    Replies: 5
    Last Post: 02-21-2012, 05:02 PM
  3. Report using a Crosstab Query
    By Paul H in forum Reports
    Replies: 2
    Last Post: 02-09-2012, 04:35 PM
  4. Report based on crosstab query
    By pbuecken in forum Reports
    Replies: 7
    Last Post: 01-16-2012, 09:59 PM
  5. Replies: 0
    Last Post: 05-09-2011, 01:51 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