Results 1 to 3 of 3
  1. #1
    benjammin is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Nov 2010
    Posts
    60

    select and insert using two seperate tables

    OK, this might be redundant, hopefully. Simply inventory database I'm working on.

    Tables:


    tblEquipmentModels (where everything is written)
    tblEquipmentType (type of equipment)
    tblVendors (vendor of the equipment)

    I want to create a query and eventually a form that will let me Add/Edit/Delete equipment models. tblEquipmentType and tblVendors are related to tblEquipmentModels by an ID key.

    In the tblEquipmentModels there are two columns, VendorID and EquipTypeID, each has a number relating to the ID in the two other tables.

    How do I use the query to select and display the choices of vendors and equipment types and write their corresponding ID to the tblEquipmentModels fields?

    Does this make sense? Attached is a screenshot incase it doesn't. THANKS!

  2. #2
    benjammin is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Nov 2010
    Posts
    60
    maybe this belongs in the forms section?

  3. #3
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    Here are some links to great references and tutorials.
    http://www.datapigtechnologies.com/AccessMain.htm free video tutorials
    http://www.allenbrowne.com/casu-22.html Crystal's Access Basics
    http://www.fontstuff.com/siteindex.htm#access Martin Green's Tips
    http://www.databaseanswers.org/data_models/index.htm sample data models

    Take a look at some of the Inventory models to get some ideas.

    Inventories are not really all that simple.

    Good luck.

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

Similar Threads

  1. Replies: 10
    Last Post: 12-13-2010, 11:49 PM
  2. INSERT INTO ... SELECT Subquery
    By TheDeceived in forum Programming
    Replies: 1
    Last Post: 10-19-2010, 09:29 AM
  3. INSERT INTO and UPDATE to multiple tables
    By lupis in forum Import/Export Data
    Replies: 6
    Last Post: 05-19-2010, 05:21 AM
  4. Replies: 0
    Last Post: 09-08-2009, 11:01 AM
  5. Updating two tables using SQL Insert Into
    By glazzaro in forum Programming
    Replies: 0
    Last Post: 05-02-2008, 10:52 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