在VB 6.0中,我收到DataGrid的错误“运行时错误6147:未找到列| 1”。 [英] In VB 6.0 I'm getting error for DataGrid "Run time error 6147 : Column Not Found |1"

查看:395
本文介绍了在VB 6.0中,我收到DataGrid的错误“运行时错误6147:未找到列| 1”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VB 6.0中使用数据网格控件。我已将ado记录集限制在网格中。输入值时会出现错误

I'm using data grid control in VB 6.0. I've bounded the ado recordset to the grid. While entering values it is giving an error "

Run time error 6147 : Column Not Found |1

推荐答案

最后,我发现了错误。



我正在使用某些特定列填充表中的记录集。我在网格中添加了一列,但在记录集的select查询中没有。虽然该列存在于实际的db表中,但它引发了错误。我在记录集的select语句中添加了新列,问题得到解决。
Finally, I found the error.

I was populating the recordset from the table with some particular columns. I appended one column to grid but not in the recordset's select query. Though the column exists in actual db table, it was throwing an error. I added the new column in recordset's select statement and issue got resolved.


这篇关于在VB 6.0中,我收到DataGrid的错误“运行时错误6147:未找到列| 1”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆