Empty fields in databinding
- From: "Savvas" <savvas.ioannides@xxxxxxxxx>
- Date: 29 Aug 2005 00:13:45 -0700
Hi
I have date/time fields in database access table and i would like to be
able to have the choice to be empty when i click the submit button in
my vb.net form.
In the click event of the submit button i have the following code:
Me.comInsertIC.Parameters("expirydatecoke05lpet").Value =
Me.txtexpirydatecoke05lpet.Text
comInsertIC is the insert command generated by the adapter.
When I click submit button and the field is an empty string I get the
following exception: String was not recognised as a valid datetime.
What can I do in the case of adding a new record and editing an
existing one?
(I use the comInsertIC for adding and for editing the following code:
Me.BindingContext(Me.datasetAddEditIC.ic).EndCurrentEdit()
Me.adapter.AddEditIC.Update(Me.datasetAddEditIC.ic)
Thank you
Savvas
.
- Follow-Ups:
- Re: Empty fields in databinding
- From: Cor Ligthert [MVP]
- Re: Empty fields in databinding
- Prev by Date: Re: difference between desktop application and intranet application
- Next by Date: Re: Empty fields in databinding
- Previous by thread: difference between desktop application and intranet application
- Next by thread: Re: Empty fields in databinding
- Index(es):
Relevant Pages
|