Combo Box empty rows filtering

rghaddad@inco.com.lb

Registered User.
Local time
Tomorrow, 01:40
Joined
Dec 5, 2013
Messages
16
Good Morning,
Just Created a Form with a Combo Box.
The combo box lists all the companies in the table. nonetheless, not all record contain a company name.
is there a way to get rid of the empty spaces?
Thanks in advance
Roland
 

Attachments

  • 2018-08-06 15_31_27-Window.png
    2018-08-06 15_31_27-Window.png
    9.4 KB · Views: 149
how can a company not have a name?
either:
filter the query to not show unnamed companies
select coName from tCo where [CoName]<>""

or
have the combo box show 2 or more columns to see fields if there is no Co name
[ID], [CoName],[Address]
 
Um, if they don't have a name how are they in the database? Or are you saying sometimes it's a person so while the company name is blank there are other fields to identify the entity?
 
you can at least but some meaningful data, ie:

"Mr.Arnelgp (Self-Employed)"
 
I am guessing maybe you are trying to get a discrete list of companies already in the DB

"Select Distinct CompanyName from sometable where CompanyName is Not Null"
then your list is
5Index
Quest4
Ejaco
Resco
 

Users who are viewing this thread

Back
Top Bottom