本文介绍了组合框代码返回错误消息!!!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我以为我昨天弄清楚了。错误!我有2个组合框,CBUnit和CBSub。当在CBUnit中单击值时,它应该在CBSub中显示相应的子值。这些组合框基于2个表格; tbl_Unit和tbl_Sub。 CBUnit具有以下内容: RowSource:tbl_Unit ColumnCount:2 ColumnWidth:0" ;; 1.5" BoundColumn:1 CBSub具有以下内容: RowSource:SELECT tbl_Sub。 AUTONUMBER,tbl_Sub.Sub FROM tbl_Sub ORDER BY [Sub]; ColumnCount:2 ColumnWidth:0" ;; 1" BoundColumn:1 In theVisual Basic Editor,我输入以下代码:I thought I had it figured out yesterday. WRONG! I have 2 combo boxes, CBUnit and CBSub. When value is clicked within CBUnit, it should bring up corresponding sub-values in CBSub. These combo boxes are based on 2 tables; tbl_Unit and tbl_Sub.CBUnit has the following:RowSource: tbl_UnitColumnCount: 2ColumnWidth: 0";1.5"BoundColumn: 1CBSub has the following:RowSource: SELECT tbl_Sub.AUTONUMBER, tbl_Sub.Sub FROM tbl_Sub ORDER BY [Sub];ColumnCount: 2ColumnWidth: 0";1"BoundColumn: 1In theVisual Basic Editor, I put the following code: 展开 | 选择 | Wrap | 行号推荐答案 废话,我认为这样可行。但我替换它并显示相同的错误消息。我确实检查了UnitID是否为数字。它是。自动编号和长整数。 其他任何想法? 但感谢至少试图帮助Nic。我非常感激!Crap, I thought that would work. But I replaced it and it displayed the same error message. And I did check to see if UnitID is numeric. It is. Autonumber and Long Integer.Any other ideas?But thanks for at least trying to help Nic. I appreciate it greatly! 展开 | 选择 | Wrap | 行号 这篇关于组合框代码返回错误消息!!!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 06-15 07:58