关于表单里用GRID建立查询的问题
在做项目是做了两个查询,一个是时间查询,一个是按购机类型查询,1.在运行时间查询表单的时候,说我找不到别名XS
但我定义了别名
ININT事件如下;
set safe off
use 销售记录 alias xsjl in 1 exclusive
ThisForm.Grid1.RecordSource=""
查询命令按钮的如下:
use 销售记录 alias xsjl in 1 exclusive
ThisForm.Grid1.RecordSource=""
sele xsjl
sele * from xsjl where allt(购机时间)==allt() into cursor a1
sele a1
ThisForm.Grid1.RecordSource="a1"
thisform.refresh
2.在运行购机类型查询的时候说:不能识别的成员 GRID1
ININT事件如下:
set safe off
use 客户信息 alias kh in 1 exclusive
use 销售记录 alias xs in 2 exclusive
THISFORM.GRID1.RECORDSOURCE=''
查询命令按钮如下:
ThisForm.Grid1.RecordSource=""
sele xs
sele * from xs where allt(购机类型)==allt() into cursor a1
sele a1
ThisForm.Grid1.RecordSource="a1"
thisform.refresh
不知道是什么原因,还请各位大哥们帮忙,谢谢了!
以下是整个项目,麻烦大家了
作业.rar
(1.57 MB)