Results 1 to 3 of 3
  1. #1
    lefty2cox is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    May 2013
    Posts
    163

    Querry criteria better practice

    I have a query based on two related tables. tblParts has a foreign key that is related to the primary in tblSuppliers. I want to build a query that will display parts from a particular supplier. tblSupplers has two fields, ID and SupplierName.

    Is it better to use just the tblParts and base my criteria on the SupplierID in that table or should I include tblSuppliers and base my criteria on the text of supplierName?



    Thank you

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Sorting and filtering is best done on numeric keys. However, if you want an alphabetic order then must use text for sort. Include tblSuppliers if you want to see name.
    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.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    How will you determine the supplier? By name, by id, on a form?

    Since tblParts has a FK to Supplier, you may be able get all you need from tblParts, if you know the supplierid.

    Need a little more context re your setup.

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

Similar Threads

  1. Need Guidance on Best Practice
    By Cavebay in forum Programming
    Replies: 5
    Last Post: 12-03-2021, 05:01 PM
  2. DSUM Querry
    By jackjfarrell in forum Queries
    Replies: 5
    Last Post: 07-06-2016, 12:27 PM
  3. Querry question.
    By ZJGMoparman in forum Queries
    Replies: 2
    Last Post: 02-20-2013, 11:37 AM
  4. Update Querry
    By wrenchman123 in forum Queries
    Replies: 0
    Last Post: 02-05-2011, 07:21 AM
  5. Best practice?
    By thekruser in forum Queries
    Replies: 2
    Last Post: 09-20-2010, 09:41 AM

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