This is my code
string stR = "INSERT INTO CHECKINOUT (USERID,CHECKTIME,CHECKTYPE,VERIFYCODE,SENSORID,WorkCode) " +
" SELECT a.USERID,c.CHECKTIME,c.CHECKTYPE,c.VERIFYCODE,c.SENSORID,c.WorkCode " +
" FROM USERINFO a " +
" JOIN [MS Access;DATABASE=" + open.FileName + "].USERINFO b " +
" ON a.BadgeNumber=b.Badgenumber " +
" JOIN [MS Access;DATABASE=" + open.FileName + "].CHECKINOUT c " +
" ON b.USERID=c.USERID " +
" WHERE NOT EXISTS " +
" (SELECT a.USERID,c.CHECKTIME,c.CHECKTYPE,c.VERIFYCODE,c.SENSORID,c.WorkCode " +
" FROM USERINFO a " +
" JOIN [MS Access;DATABASE=" + open.FileName + "].USERINFO b " +
" ON a.BadgeNumber=b.Badgenumber " +
" JOIN [MS Access;DATABASE=" + open.FileName + "].CHECKINOUT c " +
" ON b.USERID=c.USERID)";
I got exception error "Syntax error in FROM clause"
Note: I already exported all ms access tables to ms sql 2000 database and this script is working fine with no error, but with ms access I receive this kind of error, This is the first time I'm using ms access as back end, this is an old program in my office that I need to fix error.