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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I select the first value of a combo box

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
US
Access '97<br>I've tried:<br>Me![Combo30].ItemData(0)<br>in the VBA code window of the On_current event of the form.<br>&quot;Error Property not supported&quot;.<br>Me![Combo30].Selected(0) = True<br>Object does not support thie property or method.<br><br>I don't know it's value, they are dates and I sorted the combo box so the most recent date is first in the list. So I want it to default to that date instead of being blank when I open the form.<br><br>I put it in the default Value of the Properties<br>like so:<br>[Combo30].[ItemData}(0)<br>But its blank too.<br><br>I'm at a loss here. <p>DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br> Ask me how Bar-codes can help you be more productive.
 
Try<br><br>Combo30 = Combo30.ItemData(0)<br><br>PaulF
 
Thanks I didn’t try that<br><br>I just hate when one thing works one way and something that you think is similar works differently.<br>Like the List box and combo box<br> <p>DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br> Ask me how Bar-codes can help you be more productive.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top