473,385 Members | 1,356 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,385 software developers and data experts.

How to add a blank entry in a Query based combobox?

I like to have a blank entry at top of the combobox list, so the user
is able to clear the combobox.
Right now, the form displays a empty entry on load, but after chosen a
value once, it is not possible to select a blank entry again. The only
way is to delete the string manually and press enter.

Nov 13 '05 #1
8 9891
Krul wrote:
I like to have a blank entry at top of the combobox list, so the user
is able to clear the combobox.
Right now, the form displays a empty entry on load, but after chosen a
value once, it is not possible to select a blank entry again. The only
way is to delete the string manually and press enter.


Me.Combo0 = Null
Nov 13 '05 #2
Krul wrote:
I like to have a blank entry at top of the combobox list, so the user
is able to clear the combobox.
Right now, the form displays a empty entry on load, but after chosen a
value once, it is not possible to select a blank entry again. The only
way is to delete the string manually and press enter.


Me.Combo0 = Null
Nov 13 '05 #3
I guess with this method I will loose my original query based list
too....

I just want to add a blank entry above the query list.

Nov 13 '05 #4
I guess with this method I will loose my original query based list
too....

I just want to add a blank entry above the query list.

Nov 13 '05 #5
Air Script

SELECT '' AS Description FROM tbl2002Transactions
UNION
SELECT DISTINCT tbl2002Transactions.fldDescription AS Description
FROM tbl2002Transactions
ORDER BY Description

Nov 13 '05 #6
Air Script

SELECT '' AS Description FROM tbl2002Transactions
UNION
SELECT DISTINCT tbl2002Transactions.fldDescription AS Description
FROM tbl2002Transactions
ORDER BY Description

Nov 13 '05 #7
Many thanks. This is really a nice sql hack ;)

Nov 13 '05 #8
Many thanks. This is really a nice sql hack ;)

Nov 13 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Iain Miller | last post by:
Struggling a bit here & would be grateful for any help. I have a table which has a list of people in it. Each person has a unique ID automatically allocated by Access but also belongs to one of 5...
4
by: John Baker | last post by:
Hi: I have a query which supports a form. Te form is used to edit, update and change records in the table the query is based on. It all works fine EXCEPT that the "New" record (blank updatable...
6
by: Andy | last post by:
Hello, I am having many problems with setting up a parameter query that searches by the criteria entered or returns all records if nothing is entered. I have designed an unbound form with 3...
1
by: Alex.Wisnoski | last post by:
I have a data entry form with a combo box to look up an entrant's name. If the name is already in the table then it pulls up the record and that part of the form works fine. If the name isn't in...
0
by: Jean | last post by:
Hello everybody. Can someone point out please what is wrong with my work? What I have so far: People take part in experiments, and a record is made in tblExperimentInstances. There are a number...
0
by: Krul | last post by:
I like to have a blank entry at top of the combobox list, so the user is able to clear the combobox. Right now, the form displays a empty entry on load, but after chosen a value once, it is not...
10
by: lorirobn | last post by:
Hi, I have a form with several combo boxes, continuous form format, with record source a query off an Item Table. The fields are Category, Subcategory, and Color. I am displaying descriptions,...
5
by: Steve B. | last post by:
Without adding whitespace to the ComboBox datasource is there a way I can add a blank entry or, a reset entry, to the ComboBox dropdown Thanks Steve
1
by: Richard | last post by:
Very typical normal data Table One ------ One.OneID (PK) One.Name One.Description One.TwoID (FK) One.ThreeID (FK) ....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.