无法使用visual basic 2008更新多个列 [英] cannot update multiple columns with visual basic 2008

查看:67
本文介绍了无法使用visual basic 2008更新多个列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone&请原谅我的无知。我是.net的新手,也是SQL的新手。下面的代码给了我一个例外,告诉我它是一个无效的列名。它从frmMain.txtBadge.Text获取输入字符串。并认为这是列名。我已经搜索了几天没有任何线索。任何帮助,将不胜感激。

谢谢

Hello Everyone & please excuse my ignorance. I am fairley new to .net and newer to SQL. The below code gives me an exception telling me that it is an invalid column name. It''s taking the input string from "frmMain.txtBadge.Text" and thinking it''s the column name. I have searched for days without any clue. Any help would be appreciated.
Thanks


展开 | 选择 | Wrap | 行号

推荐答案

提示:在编写问题时,工具栏上有一个按钮,用于包装复制/粘贴代码周围的[code]标记。它有助于一堆。它的按钮上有一个''#''。 有关标签的更多信息。他们很酷。 Check''em out。
TIP: When you are writing your question, there is a button on the tool bar that wraps the [code] tags around your copy/pasted code. It helps a bunch. Its the button with a ''#'' on it. More on tags. They''re cool. Check''em out.


展开 | 选择 | Wrap | 行号


感谢Sashi的回复。我复制并粘贴了您的代码,但仍然收到相同的错误...无效的列名称''TNJCL''。 TNJCL是字符串内容frmMain.txtBadge.text。
Thanks Sashi for the response. I copied and pasted your code and am still getting the same error... Invalid column name ''TNJCL''. TNJCL is the string content of "frmMain.txtBadge.text.


这篇关于无法使用visual basic 2008更新多个列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆