0
Good morning I’m trying to make a mistake but Join.
string Query = "Select rec.chvbfj, rec.doc, vndB.chvvnd, vndB.chvps, ps.chvps, ps.Dsc " +
"From (( " +
"rec " +
"inner join vndB " +
"on vndB.chvvnda = cast(rec.doc as int)) " +
"inner join ps " +
"on ps.chvps = vndB.chvps)";
of the error:
Ierrorinfo.Getdescription failure with E_FAIL(0x80004005).'
rec.chvbfj number rec.doc text vndB.chvvnda number vndB.chvps number ps.chvps number ps. Dsc text
I will list rec.chvbfj (3), result would be 3(3,4,5), text format, look in table vndB.chvnda(3,4,5), numeric format, field chvps the result has to leave table ps field Dsc the name.
Try removing the parentheses: Both after the
From
, the second after thecast
, and what’s at the end of the query and try again.– Ronaldo Araújo Alves
Try using either the Microsoft Access Cint or Cstr function.
– anonimo
Before using check if it is your case: Microsoft Hotfix E_FAIL support(0x80004005)
– Augusto Vasques