"INSERT INTO temptable(code,sdatetime,photoname,photoname1,hjudge,sdatetime1) VALUES(" _
                                 & recSelect.Fields("code") & ",#" & CStr(Format(recSelect.Fields("sdatetime"), "yyyy-mm-dd hh:mm:ss")) & "#" _
                                 & "," & recSelect.Fields("photoname") & "," & recSelect.Fields("photoname1") & "," _
                                 & recSelect.Fields("hjudge") & ",#" & CStr(Format(recSelect.Fields("sdatetime1"), "yyyy-mm-dd hh:mm:ss")) & "#)"你把这一串负值了以后,msgbox一下就知道有没有问题了