开发者

How to pass the value of Access-Field to a Textbox?

开发者 https://www.devze.com 2023-02-19 08:36 出处:网络
I\'m using VB2005 and I got a message error in a runtime: Abstract does not belong to table tblBooks. I don\'t think that the problem is its datatype. I\'m currently using MEMO datatype because I need

I'm using VB2005 and I got a message error in a runtime: Abstract does not belong to table tblBooks. I don't think that the problem is its datatype. I'm currently using MEMO datatype because I need to load it more than the capacity of string开发者_JAVA技巧. Is it possible to use this code in order to accomplish it? txtAbstractInfo.Text = MyTable.Tables(0).Rows(Counter)("Abstract").ToString

txtAbstractInfo is the name of my textbox and my field's name is Abstract. I'm a newbie in VB 2005 and I am honestly unfamiliar with this kind of error. Please help me out!


Ok, actually I don't know the cause of your problem, so let's begin with that, I suggest that you change the name of the field in the database from "Abstract" to "Abstract1" just to make sure that the name is not a reserved word, so run your program with this change.

If problem persists then change the memo type to string (or text I don't remember) and run the program again. I think that with this changes we could have a better idea of what's going on.

0

精彩评论

暂无评论...
验证码 换一张
取 消