列表框导入到mysql,如何通过从列表框中选择项来添加数据库字段的值。

I am developing a application in vb6 and access 2007 but I am facing a problem like i need to select some items from a List box and then add length and breadth of the corresponding Items. I do not know which control should i use grid control or simple text boxes.

ex:

Item Name Rate Length Width Total_Amount

Item 1 100 3 4 1200

I know Item rate corresponding to the items will be coming from access table and I just need to add length & breadth only.

Hope to get some idea from you.

Thank you

解决方案You shouldn't be installing Visual Studio IDE on the client computer - you should be building your application and installing that. The .net framework should already be available on their machine (assuming you are not using Windows2000 or something silly like that)

Bear in mind that if you are going to use VB6 you will need to include all of the runtime components in your install (some are included with Windows but not necessarily all the ones you need). Your installer cannot be written in VB6 because it will need the runtime components to run. Catch-22.

An editable grid in VB6 is a pain. There have been several 3rd party products to provide such grids over the years but I cannot recommend any of them (and I've dealt with quite a few)

I suggest using simple text boxes to capture the data and have a Submit button (or similar) that copies the data to the grid/list. Make sure that you have some labels or read-only textboxes containing the "other" data from the row so that the user has some context of what they are entering.

If you want to post details of the "some database error" was then we may be able to help you overcome it.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值