Function dbTimeStamp (SqlTimeStamp As Variant) As String
' This function creates a hex digit timestamp 'string' which
' can be passed to any update store procedure
Dim cString As String
Dim x As Integer
cString = "0x"
For x = 1 To Len(SqlTimeStamp)
cString = cString + Right$("00" + Hex$(Asc(Mid$(SqlTimeStamp, x,
1))), 2)
Next
dbTimeStamp = cString
End Function
UPDATE tablename SET col = col FROM table
WHERE key = key AND timestamp = dbTimeStamp(VB timestamp variable)
' This function creates a hex digit timestamp 'string' which
' can be passed to any update store procedure
Dim cString As String
Dim x As Integer
cString = "0x"
For x = 1 To Len(SqlTimeStamp)
cString = cString + Right$("00" + Hex$(Asc(Mid$(SqlTimeStamp, x,
1))), 2)
Next
dbTimeStamp = cString
End Function
UPDATE tablename SET col = col FROM table
WHERE key = key AND timestamp = dbTimeStamp(VB timestamp variable)