+ Reply to Thread
Results 1 to 6 of 6

how to create "if-then" in access quiries

  1. #1
    Registered User
    Join Date
    05-07-2012
    Location
    Michigan
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    44

    Question how to create "if-then" in access quiries

    I am working with a large amount of data but I only need the data a specific set of vendors "packaging vendors", I would like to have the query only pull data for packaging vendors which would be identified by a unique vendor number. can anyone help me please?

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: how to create "if-then" in access quiries

    Can you be more specific? What do you mean by unique vendor number? You have not provided enough information.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: how to create "if-then" in access quiries

    If the "unique vendor number" is 123456, then the SQL query would look like this:
    Please Login or Register  to view this content.
    If that's not what you're looking for, then please provide more information like Alan has already stated.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    05-07-2012
    Location
    Michigan
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    44

    Re: how to create "if-then" in access quiries

    The extract I have from our ERP data base is purchasing information it has over 65000 records, each vendor is assigned by the ERP system a unique vendor number, so they’re not sequential, I only want to pull information for vendors that supply packaging material. I have a list of those suppliers and their vendor numbers. what I wanted to do was create a query that will only pull information from the extract for those packaging suppliers I have on my list.

  5. #5
    Registered User
    Join Date
    05-07-2012
    Location
    Michigan
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    44

    Re: how to create "if-then" in access quiries

    Thank you -- i have added some additional detail hopfully it will help

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: how to create "if-then" in access quiries

    Hi Jon,

    It sound like you have a table of ALL and another table of what you WANT. If you pull both those tables into a query and connect them by a common field and make the connection a one-to-one relationship, it should give you what you want. It will only show the records in the ALL table that match the field data in the WANT table.

    I hope that helps...
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1