Results 1 to 8 of 8
  1. #1
    VTO is offline Novice
    Windows 10 Office 365
    Join Date
    Jun 2020
    Posts
    3

    Question Making a field in one table populate data in another table

    Hello,

    I am building a database and I have two tables one name computers the other disk drives. In the computers table I have a fields name disk drive serial number, disk drive type, disk space, and service tag. In correlation to that my disk drives table I have fields named serial number, disk drive type, size, and location. I want to know to make it so when the serial number for the disk drive is entered into the computers table in builds a new line in the disk drives table and populates corresponding fields with appropriate data

    Computers Disk Drives

    Disk drive serial --> serial
    Disk drive type --> Disk drive type
    Disk Space --> Size
    Service Tag --> Location

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,643
    Why do you want to duplicate data in multiple tables? This violates basic relational database principle.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    VTO is offline Novice
    Windows 10 Office 365
    Join Date
    Jun 2020
    Posts
    3
    I still really new to using access and don't have much knowledge on where things are located could you break it down alittle more I can tell you that I do want to save the related info

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,643
    Have you studied an introductory tutorial book on Access? Have you done any research on database design and normalization?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Quote Originally Posted by VTO View Post
    I still really new to using access and don't have much knowledge on where things are located could you break it down alittle more I can tell you that I do want to save the related info
    The code would go here, if you actually need to save the extra fields. As June7 and my link suggest, you probably shouldn't.

    http://baldyweb.com/FirstVBA.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    VTO is offline Novice
    Windows 10 Office 365
    Join Date
    Jun 2020
    Posts
    3
    Pbaldy thank you so much you guys have been a big help

  8. #8
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    No problem.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 9
    Last Post: 02-02-2015, 01:03 PM
  2. Replies: 1
    Last Post: 10-23-2014, 04:40 PM
  3. Replies: 7
    Last Post: 09-15-2014, 11:55 AM
  4. Replies: 2
    Last Post: 07-07-2014, 09:19 AM
  5. Replies: 6
    Last Post: 06-14-2013, 05:43 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