Hi,
I want to sort all the data with the date which user key in. To store in the server, i use let the user to choose a date from the calendar. The format is 6/20/2007. But the date will be store in the server in format 2007-06-20.
When the user want to review his data, he choose from the calendar but the recordsource cannot find the data. What should I do?
Following is my code. Please have look on it. Thanks..
I want to sort all the data with the date which user key in. To store in the server, i use let the user to choose a date from the calendar. The format is 6/20/2007. But the date will be store in the server in format 2007-06-20.
When the user want to review his data, he choose from the calendar but the recordsource cannot find the data. What should I do?
Following is my code. Please have look on it. Thanks..
Code:
Private Sub Calendar1_DblClick()
txtDate = Calendar1.Value
End Sub
Private Sub savebtn_Click()
With rs
.AddNew
.Fields("Date") = txtDate.Text
.Update
End With
Adodc1.RecordSource = "select *from downtime where Date = '"+txtdate.text+"'"
Adodc1.Refresh
DataGrid1.Refresh
End Sub
Comment