Rabu, 06 November 2013

RE: [MS_AccessPros] Select First Item In Combo Box List By Default

 

Darrell-

It needs to be:

Me.cboRunSearch = Me.cboRunSearch.ItemData(0)

 

John Viescas, Author

Microsoft Access 2010 Inside Out

Microsoft Access 2007 Inside Out

Microsoft Access 2003 Inside Out

Building Microsoft Access Applications

SQL Queries for Mere Mortals

http://www.viescas.com/

(Paris, France)

 

 

 

From: MS_Access_Professionals@yahoogroups.com [mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of Embrey, Darrell
Sent: Wednesday, November 06, 2013 5:26 PM
To: MS_Access_Professionals@yahoogroups.com
Subject: [MS_AccessPros] Select First Item In Combo Box List By Default

 




Greetings All,

I am working with Access 2007. I have a form that has a combo box in the header section to filter the data displayed in the form’s detail section. I want to set the combo box’s value to display the first item in the combo box’s list. According to the help for the Selected property, I should be able to selected the first item in the list using the following in the form’s Load event:

Me.cboRunSearch.Selected(0) = True

Obviously, this is not working or I wouldn’t be writing this. What am I missing?

 

Darrell

 




 

The information contained in this communication is highly confidential and is intended solely for the use of the individual(s) to whom this communication is directed. If you are not the intended recipient, you are hereby notified that any viewing, copying, disclosure or distribution of this information is prohibited. Please notify the sender, by electronic mail or telephone, of any unintended receipt and delete the original message without making any copies.

Blue Cross Blue Shield of Michigan and Blue Care Network of Michigan are nonprofit corporations and independent licensees of the Blue Cross and Blue Shield Association.

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (3)
Recent Activity:
.

__,_._,___

Tidak ada komentar:

Posting Komentar