标题:在查询里就一个文本框想查询多个内容
取消只看楼主
hao710
Rank: 1
等 级:新手上路
帖 子:116
专家分:0
注 册:2008-9-22
 问题点数:0 回复次数:1 
在查询里就一个文本框想查询多个内容
我在一个表单上做个文本框,下面是表格,一个查询按钮,意思是查询的内容在临时表显示,学的一个代码只能查询一个,哪位老师能给指教,多加几个内容。如:性别,年龄,地址。谢谢
if empty(thisform.text1.value)
    wait windows '请填入姓名!'
    thisform.text1.setfocus
else
    Select * from 表2;
     where 姓名 like alltrim(thisform.text1.value)+'%' ;       into cursor 临时信息表
    thisform.grid1.recordsource='临时信息表'
endif
搜索更多相关主题的帖子: 文本 查询 
2008-10-04 09:05
hao710
Rank: 1
等 级:新手上路
帖 子:116
专家分:0
注 册:2008-9-22
得分:0 
结帖???老师指教
2008-10-04 09:19



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




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

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