Results 1 to 2 of 2

Thread: [Resolved] Access Queries

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    [Resolved] Access Queries

    I am mostly familiar with MySQL and consider myself well versed in it, but am using Access to create a program for a company. It's fine and all, the queries using ADO in VB are very similiar if not exactly the same. However, I've run into a sort of problem. I want to list all of the different companies I have by just using one query, but I only want ONE result per company, because I just want to have that company's name so that it can be used to get a "general information" when clicked. I'm not sure if this is even possible. I can do it programmatically but I just want to limit the amount of overhead I've got, so structuring and limiting the results I get without having to sort through them using code would be a big help.
    Last edited by kows; Sep 25th, 2006 at 07:03 PM.
    Like Archer? Check out some Sterling Archer quotes.

  2. #2
    Fanatic Member Dnereb's Avatar
    Join Date
    Aug 2005
    Location
    Netherlands
    Posts
    863

    Re: Access Queries

    Use
    SELECT DISTINCT CompagnyName, ...., ...., ... FROM YourTable
    why can't programmers keep and 31 Oct and 25 dec apart. Why Rating is Useful
    for every question you ask provide an answer on another thread.

Posting Permissions

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



Click Here to Expand Forum to Full Width