Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
Trudye
Posting Yak Master
169 Posts |
Posted - 2009-07-07 : 08:14:10
|
Hi guysI am recieving the following error: 3464 Error found data type mismatach in criteria expressionFunction Update_table()Dim db1 As DatabaseDim rs1 As RecordsetDim rs2 As RecordsetDim sDsloan As StringOn Error GoTo Err_RtnSet db1 = DBEngine(0)(0)Set rs1 = db1.OpenRecordset("_Tbl_Fees_Cncls_06222009", dbOpenDynaset)Set rs2 = db1.OpenRecordset("TRN", dbOpenDynaset)Do While Not rs1.EOF'sDsloan = rs1!dsloanrs1.FindFirst "DSLOAN = " & rs2!Trloan If rs1.NoMatch Then MsgBox "No detail recs present " GoTo GoRnd End If rs1.Edit rs1!TRCODE = rs2!TRCODE rs1!TRDATE = rs2!TRDATE rs1.UpdateGoRnd:If Not rs1.EOF Then rs1.MoveNextEnd IfLooprs1.Closers2.CloseExit FunctionErr_Rtn: MsgBox "Err found " & Err.Description & " " & Err.NumberEnd FunctionThank you,Trudye |
|
|
|
|