Still getting a run-time error '-2147217900 (80040e14): Syntax error in Insert Into Statement.
Problem in VB SQL Query
Collapse
X
-
Hi,
If both tables have same Structure , try this :
sSQL = " Insert Into TRequests " _
& " Select * From Requests " _
& " Where ReqType = '" & rtype & "'" _
& " And ReqSubType = '" & ReqTypeCmb.Text & "'" _
& " And Directorate = 'Direc1' "
Check all the tablename and field names are spelled properly..
Regards
VeenaComment
-
Originally posted by QVeen72Hi,
If both tables have same Structure , try this :
sSQL = " Insert Into TRequests " _
& " Select * From Requests " _
& " Where ReqType = '" & rtype & "'" _
& " And ReqSubType = '" & ReqTypeCmb.Text & "'" _
& " And Directorate = 'Direc1' "
Check all the tablename and field names are spelled properly..
Regards
Veena
Thanks again :)
Hopefully this will be the last problemComment
Comment