Results 1 to 5 of 5
  1. #1
    MTulloch is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Jan 2017
    Location
    Iqaluit, Nunavut, Canada
    Posts
    3

    need help creating a report from 2 tables

    I created a database in access 2013 (I am not that good).


    Created 4 tables as shown
    in inventory table the (username field is only an ID#)
    in Users table,( username column is a name.)

    so I tried report wizard and added
    UserTable:Building #, UserName
    and then
    InventoryTable: Equipment Type, Make, Model, SN

    I grouped them by Building#
    then sorted by equipment type

    I kind of expected to see a report with all the data in those fields but the report comes out empty except the headers.



    I wished to see a report with the actual UserName rather than just a user #


    any ideas? either the design problem or whatever I need to do to get data from more than one table


    thanksInventory-try-form.docInventory-try-form.doc

  2. #2
    NTC is offline VIP
    Windows 10 Access 2013
    Join Date
    Nov 2009
    Posts
    2,392
    I don't completely follow your post; but make a query that joins the tables. This way you will have the name as part of the record set. Save that query with a name. Then create a Report and select that query as its bound source rather than a table.

  3. #3
    MTulloch is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Jan 2017
    Location
    Iqaluit, Nunavut, Canada
    Posts
    3
    I will try that....
    except the entire report returns NO data in any field. I suspect I am doing something else wrong.

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    My $0.02.......

    in inventory table the (username field is only an ID#)
    in Users table,( username column is a name.)
    It looks like Users.username is a text field and inventory.username is a number field and they are linked. This will never return any records.
    Linked field MUST be the same type.

    There is a reason for having primary key fields and foreign key fields. Your tables are not linked by PK/FK.


    Looking at the doc, there are several things that I would suggest changing.
    All PK field are named identical - "ID".
    There are spaces in field names.
    There are special characters in field names

    Object names should be letters and numbers, NO spaces, No punctuation, No special characters (exception is the underscore).

  5. #5
    MTulloch is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Jan 2017
    Location
    Iqaluit, Nunavut, Canada
    Posts
    3
    Ok. will try that. actually even though the userID# was a number, I changed that to a text field so both were text fields.

    I have some work to do on the tables and have no idea how actually

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

Similar Threads

  1. Replies: 3
    Last Post: 10-29-2015, 11:15 AM
  2. Creating new tables
    By OrlyE in forum Access
    Replies: 1
    Last Post: 08-29-2014, 02:37 PM
  3. Replies: 1
    Last Post: 06-09-2014, 02:04 PM
  4. Creating Tables
    By DAH2013 in forum Access
    Replies: 4
    Last Post: 11-18-2013, 04:39 PM
  5. Replies: 27
    Last Post: 08-14-2012, 09:05 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