Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

force a combo box to be blank (show no data)

Status
Not open for further replies.

KennyUK

Technical User
Sep 13, 2001
38
0
0
GB
Hi,

For various reasons, I need a way (in code if possible) to force a combo box to be displayed on a form blank insted of showing the first item in its list as it is now.

If anyone can help me with the correct syntax or command I would very grateful.

Kind regards,

Kenny
 
Kenny, I think u could put some code on the )n_Current of the form. Something like:

comboName = null

Hope this is ok. If not, just let me know.

Nick (Everton Rool OK!)
 
Hey Nick,

Thanks for the reply and suggestion but sadly it did not work.

I have also tried comboName = ""
and comboName.Value = ""

But they did not work either.

Anything else I could try ?

Regards,

Kenny
 
Hi Kenny,

It worked fine on mine. I assume u r substitutinmg comboName for the actual name of your combo (I am not being cheeky when I say this)
Hope this is ok. If not, just let me know.

Nick (Everton Rool OK!)
 
Hi Nick,

no you are not being cheeky, its always worth checking these things but let me assure you that I am using the correct combo name.

Cheers,

Kenny
 
Hi Guys and Gals,

Still have not fixed this problem - anyone got any suggestions please ??

Thanks in advance,

Kenny
 
Hi...
We ought to be able to work this out!
Using Access2000 or ?
What is your "Row Source Type" from the properties sheet?
What is your "Row Source"?
Do you have a "default" value in the table or properties sheet?
It seems to me that when I put a combo box on a form, it is blank in form view until I make a choice. After making a choice, cboName = "" in the "After Update" event blanks it again.
If this doesn't help, you could send a (very) stripped down database with the form and combo box and maybe we could work it out together.
:)


Gus Brunston
An old PICKer
padregus@home.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top