Results 1 to 9 of 9
  1. #1
    kris9 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2013
    Posts
    18

    Access Tables Create

    Hi,



    I need to create Access tables for migration.

    One user can have multiple laptops.

    Is this the best way to create the tables as shown below. (PK – primary key & FK – foreign key)

    Table 1: User ID(PK), User name, Email, Contact, Comments

    Table 2: Laptop ID (PK), User ID (FK), Location, Desk, Make, Migration Date, Migration Status


    Can I create a query to join these two tables together so I can use the table view to enter the details ?

    Please assist

  2. #2
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Just a few thoughts (do not know what migration means):

    tblUsers
    User ID(PK),
    User name,
    Email,
    Contact,
    Comments


    tblLaptops
    Laptop ID (PK),
    Make,
    Description,
    ........

    tblUsersLaptops
    UsersLaptopsID (PK)
    User ID (FK),
    Laptop ID (FK),
    Migration Date,
    Migration Status
    Location,
    Desk,

    Thanks

  3. #3
    kris9 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2013
    Posts
    18
    thanks for the reply. I created tables as suggested and created the query for it.

    when i enter the record in query, i am getting "access database engine cannot find a record in the table with key matching field"

  4. #4
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    My suggestion was based on my perception.
    Please take in to consideration the functional scenario at your end during design phase.

    Would suggest posting the SQL of your query which is throwing the error. That would enable some one to guide you along.

    Thanks

  5. #5
    kris9 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2013
    Posts
    18
    am unable to update anything in query now.

    SELECT MigDB.[User ID], MigDB.[Workstation ID], MigDB.[Migration Date], MigDB.[Migration Status], MigDB.Location, MigDB.[Desk], Employee.[Employee Name], Employee.[Email ID], Employee.Contact
    FROM (MigDB INNER JOIN Employee ON MigDB.[User ID] = Employee.[LAN ID]) INNER JOIN Workstation ON MigDB.[Workstation ID] = Workstation.[Workstation ID];

  6. #6
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Is the query not returning any records or Do you have some other problem ?
    If the query is not returning any records, run the query part by part & see if any records are returned. Also, manually, check, which record/s, you expect the query to return, based on the joins you have used.

    Thanks

  7. #7
    kris9 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2013
    Posts
    18
    created the form (datsheet) but unable to add data to some of the fields. might be some relationship/index issue. not sure what am doing wrong.

    Attached my DB.
    Attached Files Attached Files

  8. #8
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Am not much in to Forms. Hope some body comes along & takes a look.
    At first glance, it appears that you do not have any records in the Master tables for Employee & WorkStation, which is perhaps the reason for the Form not allowing any entry in to the MigDB.
    Try adding a couple of dummy records in the Master tables for Employee & WorkStation & then see how it goes.
    Also, in case you have not got in to Forms & SubForms, Just take a look.

    Thanks

  9. #9
    kris9 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2013
    Posts
    18
    can someone please assist.. attached my sample db in my previous post

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

Similar Threads

  1. Replies: 3
    Last Post: 05-15-2013, 07:59 AM
  2. Replies: 3
    Last Post: 03-06-2013, 02:33 PM
  3. Replies: 3
    Last Post: 06-07-2011, 05:05 PM
  4. what tables to create
    By mecca in forum Access
    Replies: 9
    Last Post: 11-04-2010, 02:38 PM
  5. Advice on How to Create these Tables
    By rochy81 in forum Access
    Replies: 2
    Last Post: 05-04-2009, 04:32 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