查看: 1193|回复: 4
|
help in database
[复制链接]
|
|
i juz develop a program that require me to insert a data from textbox into database
textbox data look like:
------
tuyi
toup
eryu
eyu
-------
how can i insert it data into database(i field only such as Name ) by just press a single button?
hope anyone can help me out.. |
|
|
|
|
|
|
|
发表于 30-9-2006 01:40 AM
|
显示全部楼层
回复 #1 chihcc 的帖子
你是用哪个品牌的database~? |
|
|
|
|
|
|
|
楼主 |
发表于 30-9-2006 03:22 PM
|
显示全部楼层
|
|
|
|
|
|
|
楼主 |
发表于 4-10-2006 12:21 AM
|
显示全部楼层
how come no people reply??
i had try to add a database row like below,but still cant success,can anyone tell me why??i'm using VB.net 2003 + access
Dim objTable As DataTable
Dim drRows As DataRowCollection
Dim objDs As DataSet
Dim objNewRow As DataRow
objTable = objDs.Tables("kk")
Dim arry(0) As Object
arry(0) = "uuu"
objNewRow = drRows.Add(arry)
The error occur like this :
An unhandled exception of type 'System.NullReferenceException' occurred in connection.exe
Additional information: Object reference not set to an instance of an object.
I had try different method for demo a add database row,but always occur the same error message..
请使用中文发表!
[ 本帖最后由 白日梦 于 4-10-2006 09:44 AM 编辑 ] |
|
|
|
|
|
|
|
发表于 4-10-2006 03:51 PM
|
显示全部楼层
找一找书本,
怎样make connection 去 MS Access,
怎样写connection string,
怎样写open connection,
怎样写query,
怎样写execute query.
书本都有详细解释。 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|