Results 1 to 3 of 3
  1. #1
    SeaTigr is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2011
    Location
    U.S.A.
    Posts
    38

    Query A Table That Stores Records From Other Tables

    Good day all,

    I've been trying to solve this problem, but I just can't seem to come up with the correct verbiage to make my Googling easier.

    So,

    I've created an inventory database. Users utilize a form to enter new equipment into the database or modify existing records. The form has combo boxes for several items, such as unit type (Laptop, Workstation, Server, Monitor, etc.) and system name (the name of the program which owns the equipment). I use combo boxes to mitigate user errors in spelling and punctuation that will make queries more difficult. The main inventory table stores the comb box selections as numbers, referencing the ID of the selection on the table which contains the list.



    With the equipment table query, I would like users to be able to enter the system name. Currently, they must enter the ID#. How do I do this?

    I've included a screenshot, with some identifying names and numbers removed.Click image for larger version. 

Name:	Database Query.jpg 
Views:	12 
Size:	64.6 KB 
ID:	7100

  2. #2
    R_Badger is offline Knows a few tricks
    Windows XP Access 2003
    Join Date
    Feb 2012
    Location
    Suffolk, UK
    Posts
    262
    You are better off doing this sort of thing on a form as rule.

    I generally say, tables and queries for you, forms and reports for users.

    Set the table as the recordsource on the form, then with the combobox set your rowsource but do something sneaky, set it to two columns, first being 0cm wide

    i.e
    Row source

    Column 1 Column2
    SystemID System Name

    Because the first column is hidden by being 0cm wide, they are entering the ID but seeing the text.

    Hope that makes sense.

  3. #3
    SeaTigr is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2011
    Location
    U.S.A.
    Posts
    38
    Thank you, that helped a lot. My apologies on the delay...got one of those "drop everything you're doing" projects.

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

Similar Threads

  1. Replies: 3
    Last Post: 01-05-2012, 12:04 PM
  2. Replies: 1
    Last Post: 02-16-2011, 09:08 AM
  3. Replies: 6
    Last Post: 02-10-2011, 07:09 AM
  4. Replies: 2
    Last Post: 09-01-2010, 09:51 PM
  5. Stores Library
    By martyparty2006 in forum Forms
    Replies: 5
    Last Post: 05-05-2009, 09:16 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