Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old May 16th, 2006, 02:05 PM
fong.yang@martecgroup.com
Guest
 
Posts: n/a
Default Select Query Help

I have a tbl with a dealernumber field and zipcode field. Each dealer
number can have multiple zipcodes attached to it. I do I select just
one instance of the dealer number and all of the zipcodes attached to
that dealer number as well as all the other fields. Thanks.

  #2  
Old May 16th, 2006, 05:05 PM
salad
Guest
 
Posts: n/a
Default Re: Select Query Help

fong.yang@martecgroup.com wrote:
[color=blue]
> I have a tbl with a dealernumber field and zipcode field. Each dealer
> number can have multiple zipcodes attached to it. I do I select just
> one instance of the dealer number and all of the zipcodes attached to
> that dealer number as well as all the other fields. Thanks.
>[/color]
I have little idea how you are selecting the records. Let's say you are
using a combo. You could select the dealernames and present them in
sorted order. So you don't get duplicate names, the SQL should have the
word DISTINCT. From View/SQL your statement might be
Select distinct dealernumber from table order by dealernumber

Now when you click on that, you could set a filter to records in the
form with something like
Me.Filter = "dealernumber = " & Me.ComboBox
Me.FilterOn = True
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,338 network members.