Results 1 to 3 of 3
  1. #1
    Twinnie is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    18

    How to create form for entries for querying table

    Hello,



    I have a simple table of fields: S/N, Staff, Metrics 1, Metrics 2, Metrics 3, Metrics 4, Metrics 5. Table name is called StaffInfo.

    I want to specify a range of numbers to display per metric depending on the value supplied in the form.

    My challenge is that I don't know how to map the form input to the query criteria and secondly it is possible that I want to specify a range for the metric value e.g. for metric 1, the value could be between 5 and 8.

    Please find attached a sampleDB.

    Thank you.
    Attached Files Attached Files

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    I do not look at attachments. A query has criteria i.e. the metric value >=5 and <=8

    Criteria can be 'called' in from a text box in a form by entering the proper syntax: Forms!FormName.TextboxName

    Forms! is literal the other must be your names.

    So you can have: >= Forms!FormName.TextboxName1 AND <= Forms!FormName.TextboxName2

  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,870
    You should research Normalization. It will help you structure you table(s) to make querying easier.

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

Similar Threads

  1. Update table entries and values from form
    By Master Klick in forum Access
    Replies: 0
    Last Post: 03-15-2015, 11:49 AM
  2. Replies: 3
    Last Post: 12-29-2014, 10:14 AM
  3. Replies: 1
    Last Post: 05-20-2013, 01:45 PM
  4. Replies: 1
    Last Post: 09-21-2010, 09:49 AM
  5. Entries in table not showing on form!!!
    By corystemp in forum Access
    Replies: 6
    Last Post: 03-26-2009, 06:30 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