|
1\How to convert a string into a time class?
I use the following to change the date
Format (CDate (txtvalue.Text), "yyyy-mm-dd")
But turn time
Format (CTime (txtvalue.Text), "hh: mm: ss")
Looks like there is no ctime function
2\I now have an mdb database named default. There is a table of "test records" ...
Then I wrote this program
Dim conn As New ADODB.Connection
Dim rs_data1 As New ADODB.Recordset
Dim connectionstring As String
connectionstring = "provider = Microsoft.Jet.oledb.4.0; data source = default.mdb"
conn.Open connectionstring
rs_temp.CursorLocation = adUseClient
rs_temp.Open sql, conn, adOpenKeyset, adLockPessimistic
Now the data record is in re_temp ... but how to make the searched record into a table in default?
Thank you all in advance! |
|