Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21243

[RESOLVED] error 3464? help

$
0
0
I cant save the this now to my database
error 3464 "data type mismatch"

here are the codes
Code:

Set db = OpenDatabase(App.Path & "\database\database.mdb")
    db.Execute "update audit_log set timeout = '" & TimeValue(Now) & "', totaltime = '" & totaltime & "' where id = '" & timeid & "'"

in my table(Audit_log) field2(timeout) and field3(totaltime) are text and my primary key field1(timeid) is autonumber

my variables in vb timevalue(now) is string.
totaltime is string
time id is integer

why I have data type mismatch??

Viewing all articles
Browse latest Browse all 21243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>