Hi
I have following code to find the hashvalue in HashValue colunm and update the Time in BST column. But i breaks in (objRecordSet.F ields.Item("BST ime") = Time) here (**Edit Line #23 **). Pls HELP
I have following code to find the hashvalue in HashValue colunm and update the Time in BST column. But i breaks in (objRecordSet.F ields.Item("BST ime") = Time) here (**Edit Line #23 **). Pls HELP
Code:
Function UploadBST()
'On Error Resume Next
Dim objConnection As ADODB.Connection
Dim objRecordSet As ADODB.Recordset
Dim hashvalue1 As String
Set objConnection = CreateObject("ADODB.Connection")
Set objRecordSet = CreateObject("ADODB.Recordset")
objConnection.Open _
"Provider = Microsoft.Jet.OLEDB.4.0; " & _
"Data Source =C:\Documents and Settings\Owner\My Documents\New.mdb;"
objRecordSet.Open "SELECT * FROM TS", _
objConnection, adOpenStatic, adLockOptimistic
hashvalue1 = Environ("Username") & Date
strCriteria = "HashValue = 'hashvalue1'"
objRecordSet.Find strCriteria
objRecordSet.Fields.Item("BSTime") = Time
objRecordSet.Update
objRecordSet.Close
objConnection.Close
End Function
Comment