# Re: 观念不对喔!

Posted by Ariel CY on February 03, 1998 at 23:12:42:

In Reply to: 观念不对喔! posted by 小吴 on February 01, 1998 at 23:31:05:

: 当你用 AddNew 来新增资料的时候，VB 并不会取用 data-aware control 上的内容。所以你用 AddNew 接着 Update 事实上是加入了一个所有栏位的值都是 Null 的记录。
Yes.
可能是该 table 的 primary key 不允许 null 值，所以会出错。
No! I changed the value of my controls. For example, a Text Box
was bound to a RDC, First, Addnew; Second, I changed the text of
the Text Box; Third, Update. Then a prompt is displayed. And the
count of SQL table's rdocolumns is 1.
If I use same method with Access Table and Data Control, Success.
But with SQL Table and RDC, then failure.

: 要将目前 form 上 data-aware 控制项的资料手动写入资料库的话，必须从 RDC 控制项上着手。因我没试过，你先试看看好了，若试不出来我再帮你查资料。
Please help me. Thanks.

Follow Ups: