在vb6中更新sql statemnt的问题 [英] Problems with update sql statemnt in vb6
本文介绍了在vb6中更新sql statemnt的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一张名为SupplierInfor的桌子:
供应商ID - 自动编号
日期 - 日期
供应商名称 - 文字
供应商地址 - 文字
电话 - 电话号码
电子邮件 - 文字
城镇 - 文字
国家/地区 - 正文
我想更新此表中supplierID为特定数字的所有记录。我的代码如下:
I have a table called SupplierInfor with tables:
SupplierID - Autonumber
Date - date
SupplierName - Text
SupplierAddress - text
Telephone - Number
email - text
Town - text
country - text
I want to update all records in this table where supplierID is a certain number. The code i have is as below:
展开 | 选择 | Wrap | 行号
推荐答案
>
日期需要附上哈希:
因为你说供应商ID是自动编号而电话是数字的,所以不需要用单引号包裹它:
Hi,
Dates need to be enclosed with a Hash:
And since you say Supplier ID is Autonumber and Telephone is Numeric, no need to Wrap it with Single quotes:
展开 | 选择 | Wrap | 行号
非常感谢Veena >
它有效,现在我很感激。但是他们是另一个问题,当我尝试使用下面的代码删除同一个表中的记录时,它运行没有任何错误,但即使我继续单击删除按钮也不会删除任何记录。请查看代码并帮助我解决问题所在。
Thanks alot Veena
It worked and now am so grateful for that. But their is another problem, when i try to delete a record in the same table using the code below, it runs without any error but does not delete any record even if i keep on clicking the delete button. Please look at the code and help me with the area of the problem.
展开 | 选择 | Wrap < span class =codeDivider> | 行号
无需打开记录并删除..只需运行删除查询:
Hi,
No Need TO Open a Record and Delete.. Just Run a Delete Query:
展开 | 选择 | Wrap | 行号
这篇关于在vb6中更新sql statemnt的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文