473,395 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Help Me Clean Up My Combo

135 100+
I have a table called "Sampler". Each Sampler in the table has it's own record with vitals. Some of these Samplers have the same email address listed for them. This is because some of the results for the samples they bring in get sent to the same company. I have a combo box on my form for selecting the desired email address. The problem is, because some of the Samplers each have the same email address listed for them, the address is shown multiple times in the combo box. There are also blanks because some of the samplers do not require an email. This looks very messy and is annoying. How do I get my combo box to only display addresses once and without blanks? Any advice on a query or some code that would accomplish this would be much appreciated.
Dec 12 '08 #1
3 1421
DonRayner
489 Expert 256MB
Base your combobox on a query rather than the table itself. In the query builder you can select the totals button (looks like an M on its side) then in the total for email address field select FIRST, in the criteria for email address you put IS NOT NULL or > ""
Dec 12 '08 #2
MyWaterloo
135 100+
@DonRayner
Just a little lost. What is the "query builder"? Do you me query design view? In design view their isn't any selection for a totals button. Point me in the right direction...
Dec 13 '08 #3
DonRayner
489 Expert 256MB
@MyWaterloo
Yes I do mean "Query design view".

Make sure that your query design toolabar is showing by clicking on View, then
Toolbars... Query Design should have a check beside it.

On the query design toolbar there should be a button that looks like an M on it's side (this is the totals button).

Click on it and you will see a new row in your query design grid labled Total: Should look like this.
Field:
Table:
Total:
Sort:
Show:
Criteria:
or:

Follow the Total row over to the field with the email address and it should say "Group By". Click on the "Group By" for your email address field.

Select First in the drop down list that appears.
Dec 15 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: mark | last post by:
I've been working on an Access 2000 database for a couple of weeks now. I took a course in access about a year ago, a crash course, and I learned a ton, but I didn't touch Access for the year since...
5
by: Steve Patrick | last post by:
Hi All You guys are my last hope, despite spending money on books and hours reading them I still can not achieve the results I need. I have designed a database in Access 2000 based on 1 table,...
11
by: my-wings | last post by:
I think I've painted myself into a corner, and I'm hoping someone can help me out. I have a table of books (tblBooks), which includes a field (strPubName) for Publisher Name and another field...
13
by: Bob Graham | last post by:
'create object array Dim jobnums(1000) Omitted: code that retrieves job numbers (integers) from sql server to put in a combobox I have a combobox (cbJob) that I want to put these values into. If...
3
by: Adriano | last post by:
Hello, when I try to print something, either DataGrid or from Crystal Report viever the folowing error message appears and cancels printing: Object reference not set to an instance of an...
9
by: Edwinah63 | last post by:
Hi everyone, Please let there be someone out there who can help. I have two BOUND combo boxes on a continuous form, the second being dependent on the first. I have no problem getting the...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
3
by: jambonjamasb | last post by:
Hi I have two tables: email_tbl Data_table Data table is is used to create a Form Data_form
7
by: google | last post by:
I am trying to automate the way reports are printed in an Access 2003 database - I have ~200 records (people) who require between 5 and 10 customized reports (depending on values within certain...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.