I am new to the VFP6.0 to Microsoft SQL Server process. My problem is when trying to insert records with the Insert statement.
I have 11 fields identified with their values and the INSERT statement functions correctly. Now I am trying to add additional fields and their values and the statement errors.
my code is:
cSQL = "INSERT into tblAMC " + ; "(dept,dept2,dept3,line_no,username,customer_code,vendor,sub_account,account,account2,account3)"+ ;
" values ('&value2','&value3','&value4','&value5','&value6','&value7','&value8','&value9','&value10','&value11','&value12')"
I can change the fields and their values and it works correctly, but if I try to add another field, I get the error "command contains unrecognized phrase/keyword"
Thank you for any help
I have 11 fields identified with their values and the INSERT statement functions correctly. Now I am trying to add additional fields and their values and the statement errors.
my code is:
cSQL = "INSERT into tblAMC " + ; "(dept,dept2,dept3,line_no,username,customer_code,vendor,sub_account,account,account2,account3)"+ ;
" values ('&value2','&value3','&value4','&value5','&value6','&value7','&value8','&value9','&value10','&value11','&value12')"
I can change the fields and their values and it works correctly, but if I try to add another field, I get the error "command contains unrecognized phrase/keyword"
Thank you for any help