Data appearing when should be blank till user inputs
Back again once again....![]()
I have a VB.NET front end, which is linked to a access database table (2003) using Jet 4.0
The data is all there, and works correctly,
The problem is, when I click on ADD new record, any fields that have a DATE input, all insert current date. ( Also check box fields appear all filled in )
These fields need leaving blank until the user inputs a date, as some of them relate to future delivery dates.
Sorry if this isn`t technical, not sure how to describe but I think that is it basically.
The question is;
How can I stop the DATE data apprearing, when it should just be a NULL ( Access Term ) field until the user enters the date ?
This is the code studio creates automatically when i use the wizard thingy:-
Code:
PrivateSub bindingNavigatorSaveItem_Click(ByVal senderAs System.Object,ByVal eAs System.EventArgs) Handles bindingNavigatorSaveItem.Click
IfMe.ValidateThen
Me.Customer_DataBindingSource.EndEdit()
Me.Customer_DataTableAdapter.Update(Me.DataSet1.Customer_Data)
Else
System.Windows.Forms.MessageBox.Show(Me,"Validation errors occurred.","Save", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Warning)
EndIf
EndSub
The only other code in here that relates to the data that is in access is as follows:-
Code:
'TODO: This line of code loads data into the 'DataSet1.Glass_Suppliers' table.
Me.Glass_SuppliersTableAdapter.Fill(Me.DataSet1.Glass_Suppliers)
'TODO: This line of code loads data into the 'DataSet1.Roof_Suppliers' table.
Me.Roof_SuppliersTableAdapter.Fill(Me.DataSet1.Roof_Suppliers)
'TODO: This line of code loads data into the 'DataSet1.Panel_Suppliers' table.
Me.Panel_SuppliersTableAdapter.Fill(Me.DataSet1.Panel_Suppliers)
'TODO: This line of code loads data into the 'DataSet1.Frame_Suppliers' table.
Me.Frame_SuppliersTableAdapter.Fill(Me.DataSet1.Frame_Suppliers)
'TODO: This line of code loads data into the 'DataSet1.Fitting_Team' table.
Me.Fitting_TeamTableAdapter.Fill(Me.DataSet1.Fitting_Team)
'TODO: This line of code loads data into the 'DataSet1._MaterialsLabour' table.
Me.MaterialsLabourTableAdapter.Fill(Me.DataSet1._MaterialsLabour)
'TODO: This line of code loads data into the 'DataSet1.Customer_Data' table.
Me.Customer_DataTableAdapter.Fill(Me.DataSet1.Customer_Data)
Thanks in advance guys. I'm sure its simple, but I couldn`t find the answer in any of my books.
( They dont show you how to fix things )
Best Wishes
Max MSN ID: max_nvision[remove this]@yahoo.co.uk
Access 2003 ( For Data Sets Backend )
Visual Studio 2005 Beta 2
Windows XP SP2
Total programming Beginner - Using .Net as first language !!!!

