Results 1 to 4 of 4
  1. #1
    Paranap is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    30

    updaing report fields from a crosstab query


    Hi.

    I have a Report from a crosstab query. This query is showing dates for when training is due for a number of different skills for a number of different people. The report I have works fine but when I add a new skill the report doesn't update as it is a new field. Is there any way for it to auto update so it shows all the fields from the query or is there another way of doing it.

    Cheers

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    There's no 'auto' update, but it can be coded. IF you know vb code you can modify my example to fit your needs.
    It reads a sample row, collects the headers, then assigns the fields to the headers. This happens at report_open event.
    BUT IT IS ADVANCED CODE.

    dynamicXtabRpt.zip

  3. #3
    Paranap is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    30
    Hi
    I know a bit of vb but your right it is a bit advanced, can you give a few pointers to help intergrate what you've done into my db

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Import the report, rDynamicRpt
    and the class object, cDynamicRpt

    set the report to your query.

    In the REPORT-OPEN event is code
    RecordSource = "qxNAMES_Crosstab"
    change it to your query.

    You MAY have to add text boxes and labels. They must be named like the others.
    box1 is lbl1 and box1
    then lbl2, box2
    etc.
    to add pick up where the last box# left off via properties.

    like I said, it's advanced.

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

Similar Threads

  1. Crosstab Query: Memo Fields
    By McArthurGDM in forum Queries
    Replies: 2
    Last Post: 11-12-2014, 04:51 PM
  2. report from crosstab query
    By mike02 in forum Reports
    Replies: 1
    Last Post: 07-19-2013, 12:49 PM
  3. Report From CrossTab Query
    By GSS in forum Reports
    Replies: 5
    Last Post: 02-21-2012, 05:02 PM
  4. Report using a Crosstab Query
    By Paul H in forum Reports
    Replies: 2
    Last Post: 02-09-2012, 04:35 PM
  5. Replies: 4
    Last Post: 03-27-2011, 01:24 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