Hello all,
For some reason at the end of this script, a carriage return is placed. The output I get is the following:
INSERT INTO [table-1] ([invoice #], [customer], [customer code], [Customer PO#], [PMT Terms], [Category], [Unit], [Sales Unit Price $]) VALUES ('7-1554-01', 'Company Name', 'C000006', 'AE41403', 'Net 30 Days after B/L Date', 'PASTE', 'kgs', 82.00
);
as you can see the ); is for some reason after a carriage return and I do not know why this is happening. I do not know anything about VB and the creator is no longer here. Any help would be appreciated! Thanks.
Lines of code are:
priceStr = Right(newStr, Len(newStr) - 6)
updStr = "INSERT INTO [table-1] ([invoice #], [customer], [customer code], " &_
"[Customer PO#], [PMT Terms], [Category], [Unit], [Sales Unit Price $]) VALUES ("&_
"'" & updInvoice & "', Company Name.', 'C000006', " &_
"'" & ML_ORDER & "', '" & ML_TERMS_DESC & "', 'PASTE', 'kgs', " & priceStr & ");"
datafile.WriteLine updStr
For some reason at the end of this script, a carriage return is placed. The output I get is the following:
INSERT INTO [table-1] ([invoice #], [customer], [customer code], [Customer PO#], [PMT Terms], [Category], [Unit], [Sales Unit Price $]) VALUES ('7-1554-01', 'Company Name', 'C000006', 'AE41403', 'Net 30 Days after B/L Date', 'PASTE', 'kgs', 82.00
);
as you can see the ); is for some reason after a carriage return and I do not know why this is happening. I do not know anything about VB and the creator is no longer here. Any help would be appreciated! Thanks.
Lines of code are:
priceStr = Right(newStr, Len(newStr) - 6)
updStr = "INSERT INTO [table-1] ([invoice #], [customer], [customer code], " &_
"[Customer PO#], [PMT Terms], [Category], [Unit], [Sales Unit Price $]) VALUES ("&_
"'" & updInvoice & "', Company Name.', 'C000006', " &_
"'" & ML_ORDER & "', '" & ML_TERMS_DESC & "', 'PASTE', 'kgs', " & priceStr & ");"
datafile.WriteLine updStr