Close

Results 1 to 4 of 4
  1. #1
    DF VIP Member MonkeyBalls's Avatar
    Join Date
    Mar 2005
    Location
    Flowery Tw*ts
    Posts
    1,714
    Thanks
    0
    Thanked:        0
    Karma Level
    371

    Default MS Access Problem

    Hi
    I am currently using Microsoft Access to use a read only sql database, which is constantly updated via another system.
    I am creating a number of queries and reports in order to provide information to users.
    However...

    I have created a Query from tables in Access,with the fields:



    Name, Surname, Group, Date, Event



    I have created a crosstab query from this based on Event. This has created the following columns in the CrossTab query:



    Name, Surname, Group, Date, GNC, GNX,GNH,GNO,MER



    As you can see the Event field has been converted into the five fields, GNC, GNX, GNH, MER.

    The problem I face is when i create a report on this data. I have created the report and was printing it on a year to date perspective, which worked fine. However when I attempt to print the report on a week to date, there are no field records for GNC, so the report gives an error saying that the Jet engine cannot create the report because it can't find any records for "GNC".

    Is there any way around this, as the same problem will probably occur in the future, and I need the database to print the reports automatically upon the running of the program. It is to be used by people with little or no experience with Access, and has to be as easy as posisble, i can't have them going into report design view and deleting the GNC field so that it does not request it, as they do not have the knowledege to do re-establish the feild into the report.



    Please Help! Its Kinda Urgent!

  2. #2
    DF VIP Member flipper321's Avatar
    Join Date
    Feb 2003
    Location
    Essex
    Posts
    2,696
    Thanks
    11
    Thanked:        131
    Karma Level
    474

    Default Re: MS Access Problem

    In the crosstab query right click at the top of the "column heading" column. Where you have column headings enter all possible column headings e.g. GNC GNX GNH etc etc.

    This should produce a column for GNC even when data doesn't occur.

  3. #3
    DF VIP Member MonkeyBalls's Avatar
    Join Date
    Mar 2005
    Location
    Flowery Tw*ts
    Posts
    1,714
    Thanks
    0
    Thanked:        0
    Karma Level
    371

    Default Re: MS Access Problem

    cheers for that but i can't find how to do it!?
    I'm using Access 2000...is what you said to do in the design or print preview stage of it!?

  4. #4
    DF VIP Member flipper321's Avatar
    Join Date
    Feb 2003
    Location
    Essex
    Posts
    2,696
    Thanks
    11
    Thanked:        131
    Karma Level
    474

    Default Re: MS Access Problem

    Let me check - that guide was Access 97....

    OK it's the same in 2000 as 97 -

    in query design mode your field that contains GNC etc etc will have "Column Heading" in the Crosstab row in the bottom section. Click into the column area and right click - select properties.

    In the box that comes up there's a row called Column Headings - in the box here enter all the possible results for the field, so from your example above..."GNC", "GNX", "GNH", "GNO", "MER"

    Type it in as I have there.. in fact copy and paste as I've done it for you!!

    That should sort it.

Similar Threads

  1. Floppy problem
    By urbsy in forum PC Problems
    Replies: 8
    Last Post: 7th September 2002, 12:04 AM
  2. F12002 Problem
    By shawtek in forum Microsoft Consoles
    Replies: 9
    Last Post: 31st August 2002, 10:20 AM
  3. Problem with Compaq Armada E500 Laptop
    By Mr Olympia in forum PC Problems
    Replies: 2
    Last Post: 29th August 2002, 02:40 PM
  4. real audio recording problem
    By flypitcher in forum Music Factory
    Replies: 3
    Last Post: 28th August 2002, 11:25 PM

Social Networking Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •