Default values on a databound form

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
 
K

Ken Tucker [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top