问题描述
您好。我试图在用户单击按钮时运行以下代码,
但我在SQL中遇到语法错误。我有一种感觉,它必须用括号做
。任何人都可以帮忙吗?
这里是SQL(关注自动换行:
StrSql =" insert into [Products](ProductName)"''SQL字符串执行
带有RunSQL语句的
16980 StrSql = StrSql&" Values(''"& TxtProductName.Text&
" ;'');"
谢谢大家
科林
***已发送通过Devdex ***
不要只是参加USENET ......获得奖励!
Hi. I am trying to run the following code when the user clicks a button,
but I am getting a syntax error in the SQL. I have a feeling it has to
do with brackets. Can anyone help?
here is the SQL(watch for word wrap:
StrSql = "insert into[Products](ProductName)" ''SQL string which executes
with the RunSQL statement
16980 StrSql = StrSql & "Values (''" & TxtProductName.Text &
"'');"
thanks guys
Colin
*** Sent via Devdex http://www.devdex.com ***
Don''t just participate in USENET...get rewarded for it!
这篇关于SQL语句中的语法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!