try Me.cboRunSearch = item you want heighlighted. If the item you want highlighted is not the bound column, then set the bound value of the item you want selected.
i.e. bound item
1 dog
2 cat
3 horse
Me.cboRunSearch = 2 and cat will be heighlighted.
You can also use default value and set focus on cbo for heighlight
On Wednesday, November 6, 2013 10:26 AM, "Embrey, Darrell" <DEmbrey@bcbsm.com> wrote:
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 (4) |
.
__,_._,___
Tidak ada komentar:
Posting Komentar