By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,773 Members | 2,307 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,773 IT Pros & Developers. It's quick & easy.

Sql Statement

100+
P: 134
Hi, When I try to issue the SQL Insert statement that combine with variable "mycomp" , it display error message, how do or what the proper method to combine the field name together with variable ?

Please Advise


dim mycomp as string
mycomp="ABC"

sqlsR = "Insert into tblvndProd(ProductID,part_no,VendPartNo,desp,unit, firstrecord,vendor) values(Forms![frmMstock]![productID],Forms![frmMstock]![partnos],Forms![frmMstock]![partnos],Forms![frmMstock]![desp], Forms![frmMstock]![unit],'FIRST'," & mycomp & ");"

Sorry, I manage to Solve it.
Dec 20 '07 #1
Share this Question
Share on Google+
1 Reply


100+
P: 134
Sorry, I manage to Solve this, thanks anyway
Dec 20 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.