T
Tony K
I downloaded the new VB PowerPack 3.0 and began using the DataRepeater. I
have 2 DateTimePickers, current and future. When I add a new item, to the
datarepeater, I want to automatically add 1 year to the future
DateTimePicker.
The DataRepeater contains fields from the Service table of my DataSet.
Here is my code.
Try
Me.DataRepeater1.AddNew()
Me.ServiceDateDateTimePicker.Value = Date.Today
Me.DueDateDateTimePicker.Value.AddYears(1)
Catch ex As Exception
MessageBox.Show(ex.ToString)
End Try
I don't receive an exception, but the DueDate.... does not change. It
remains the same (today's date) as the ServiceDate....
Tony K.
have 2 DateTimePickers, current and future. When I add a new item, to the
datarepeater, I want to automatically add 1 year to the future
DateTimePicker.
The DataRepeater contains fields from the Service table of my DataSet.
Here is my code.
Try
Me.DataRepeater1.AddNew()
Me.ServiceDateDateTimePicker.Value = Date.Today
Me.DueDateDateTimePicker.Value.AddYears(1)
Catch ex As Exception
MessageBox.Show(ex.ToString)
End Try
I don't receive an exception, but the DueDate.... does not change. It
remains the same (today's date) as the ServiceDate....
Tony K.