You should be able to set the property for the combo in the Properties box.
If you are modifying the RowSource programmatically, try setting its Default
Value in the Current event of the form.
Just to be completely clear, Default Value applies to a new record only: it
has no effect on existing records where the value is Null.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Reply to group, rather than allenbrowne at mvps dot org.
Ashish Kanoongo said:
I tried this in form load also, it is not working. As in my form_load and
"new Record " command button and set the focus to first field (tab
order
is
0 )and this combobox is having taborder 5, so it set default value but after
focus on first field, it loses the focus from combo box.
I think that is why it is not working.
Set the Default Value to:
=[YourComboNameHere].[ItemData](0)
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Reply to group, rather than allenbrowne at mvps dot org.
I am using Access database and my tables are bound to forms. I m