Rabu, 06 November 2013

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

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

Duane Hookom MVP
MS Access
________________________________
> From: DEmbrey@bcbsm.com 
>
> 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

------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/MS_Access_Professionals/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/MS_Access_Professionals/join
(Yahoo! ID required)

<*> To change settings via email:
MS_Access_Professionals-digest@yahoogroups.com
MS_Access_Professionals-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
MS_Access_Professionals-unsubscribe@yahoogroups.com

<*> Your use of Yahoo Groups is subject to:
http://info.yahoo.com/legal/us/yahoo/utos/terms/

Tidak ada komentar:

Posting Komentar