Home All Groups Group Topic Archive Search About

Setting Default Value On Windows Form

Author
14 Dec 2006 5:52 PM
Will
I am upsizing an access application to vb.net.  In access textbox, combos
and checkboxes can have default values, which are assigned in the properties
for the control.  How can I set a control's default value in bound and non
bound forms?  thanks

Author
14 Dec 2006 6:27 PM
lord.zoltar
Will wrote:
> I am upsizing an access application to vb.net.  In access textbox, combos
> and checkboxes can have default values, which are assigned in the properties
> for the control.  How can I set a control's default value in bound and non
> bound forms?  thanks

For a text box or check box, just set the Text property or the Checked
property. The data that is in there at design time can be the default
value. If there is code that puts values into the controls from a
datasource, it will just overwrite the design-time values.