Ehtisham Inam wrote:
> Hi guys: Can any one please help me out in this error? Thanks
> Error 1 Operator '&' is not defined for types 'String' and
> 'System.Windows.Forms.TextBox'.
> C:\Users\kathy\AppData\Local\Temporary
> Projects\WindowsApplication1\Form1.vb 20 20
> WindowsApplication1
[snip]
> sqlQuery = "insert into voucher(VoucherName, Account_Code, Amount)
> values ('" & TxtVoucher & "', " & TxtAmount & ", '" & TxtAccount & "')"
Change the above line to this:
sqlQuery = _
"insert into voucher(VoucherName, Account_Code, Amount) values ('" & _
TxtVoucher.Text & "', " & TxtAmount.Text & ", '" & TxtAccount.Text & _
"')"
--
The measure of friendship isn't your ability to not harm, but your capacity
to forgive the things done to you and ask forgiveness for your mistakes.