佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1184|回复: 4

help in database

[复制链接]
发表于 30-9-2006 12:49 AM | 显示全部楼层 |阅读模式
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..
回复

使用道具 举报


ADVERTISEMENT

发表于 30-9-2006 01:40 AM | 显示全部楼层

回复 #1 chihcc 的帖子

你是用哪个品牌的database~
回复

使用道具 举报

 楼主| 发表于 30-9-2006 03:22 PM | 显示全部楼层
我是用VB.net + Access de
回复

使用道具 举报

 楼主| 发表于 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.
书本都有详细解释。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 23-9-2024 09:32 PM , Processed in 0.137778 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表