标题:看看我的查询代码
取消只看楼主
紫月
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2005-6-17
 问题点数:0 回复次数:0 
看看我的查询代码

帮个忙看哪错了啊,我急啊,作业要交不起来了 组合框选择查询条件(如员工编号),在文本框中输入查询具体条件(如:00),单击查询按扭,将查询结果显示在表格中,代码如下: form init 事件: public tempcursor thisform.combo1.additem("员工编号") thisform.combo1.additem("部门编号") thisform.combo1.additem("姓名") thisform.refresh tempcursor=alltrim(thisform.container1.text1.value) tempcursor="%"+tempcursor+"%"

if thisform.container1.Combo1.text="员工编号" select*from"E:\请假人员信息管理系统\forms\请假人员信息.dbf"; where 请假人员信息.员工编号=alltrim(thisform.container1.text1.value); into cursor tempcursor thisform.grid1.recordsource=tempcursor endif

if thisform.container1.Combo1.text="部门编号" select*from"E:\请假人员信息管理系统\forms\请假人员信息.dbf"; where 请假人员信息.部门编号=alltrim(thisform.container1.text1.value); into cursor tempcursor thisform.grid1.recordsource=tempcursor endif

if thisform.container1.Combo1.text="姓名" select*from"E:\请假人员信息管理系统\forms\请假人员信息.dbf"; where 请假人员信息.姓名 like tempstr; into cursor tempcursor thisform.grid1.recordsource=tempcursor endif

thisform.refresh 运行提示:(1)不能识别的成员text1 (2)操作符/操作类型不匹配 (3)不能识别的成员cobol1 (4)找不到列'部门编号',找不到'姓名 万分感激~麻烦了'

搜索更多相关主题的帖子: 信息管理系统 thisform tempcursor 员工 
2005-06-17 17:00



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-21068-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.607208 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved