Results 1 to 5 of 5

Thread: Reporting problem-----solved

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2005
    Posts
    133

    Question Reporting problem-----solved

    I ahve three linked tables, studentnames, classnames and attendance. The studentnames and classnames are linked to the attendance table using the ID numbers(primary keys). When making a new report for the attendance table is it possible to have the actual names of students and classes appear in the report rather then the numbers linking them?

    if not is there any good way of getting around this
    Last edited by chris lynch; Apr 20th, 2005 at 07:59 AM.
    11 is the magic number

  2. #2
    Hyperactive Member dRAMmer's Avatar
    Join Date
    Oct 2001
    Location
    strangelans
    Posts
    463

    Re: Reporting problem

    Yes it is you should have a query (where your report gets its data) like:
    Code:
    SELECT a.ID, a.somefields, s.StudentName, c.ClassName 
    FROM Attendance a JOIN Students s ON s.Code = a.StudentCode 
    JOIN Classes c ON c.Code = a.ClassCode 
    optional where clause
    live, code and die...

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2005
    Posts
    133

    Re: Reporting problem

    you'll have to bear with me now. this is first time using access, doi make the query with the query wizard and where do i put the code.. Can you help a little more please.
    11 is the magic number

  4. #4
    Hyperactive Member dRAMmer's Avatar
    Join Date
    Oct 2001
    Location
    strangelans
    Posts
    463

    Re: Reporting problem

    I'm not using Access anymore. But there's a new button there and after you click it, a "New Query" window will appear. Choose Design View, then click Close and click View (on the main menu) then SQL View. Then you can type your query there. or paste the code I suggested and edit it base on your table/fields name. Let me know if you need more help.
    live, code and die...

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Apr 2005
    Posts
    133

    Re: Reporting problem

    I made a query without the code, its all the same is it? I just filled in the fields in the design view

    Thanks
    11 is the magic number

Posting Permissions

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



Click Here to Expand Forum to Full Width