Default values on a databound form

  • Thread starter Thread starter Vayse
  • Start date Start date
V

Vayse

I have an access table Vehicles. There is a field Purchase Price, which has
a default value of zero.
In my databound form, I didn't include the purchase price. Now when I save,
the PurchasePrice is null. Likewise for other fields that were not on the
form.

How do I prevent vb.net from over writing the default values?
Thanks
Vayes
 
Hi,

Any default values you set in access are not transfered to your
dataset. I would set the datacolumns default value.

ds.Tables("Employees").Columns.Item("Price").DefaultValue = 0



Ken
 
Back
Top