Okay like I must be blind and dumber than a box hammers but i cant figure out what wrong with this where clause
the error message say the ";" is missing at the end of the statment
I've checked out the net and some other soruces and it looks right but............ ....
here is the whole query, the query works with out the where clause;
I'd be very appreciative if someone one could smack me upside my head with the blindingly obvious answer that, I cant for the life of me see.
thanks
B
Code:
& "WHERE tblMasterDbList.[DBName]<> '" & filSub & "';"
I've checked out the net and some other soruces and it looks right but............ ....
here is the whole query, the query works with out the where clause;
Code:
DoCmd.RunSQL "INSERT INTO tblMasterDbList (DBName, DBPath)" _ & "VALUES ( " & "'" & strFName & "'" & "," & "'" & filSub & "'" & " ) " _ & "WHERE tblMasterDbList.[DBName]<> '" & filSub & "';"
thanks
B
Comment