以下是引用yytx11在2017-9-15 17:27:01的发言:
我用这名是正常的,
SELECT * FROM 客户订单 WHERE 姓名 = "刘晓辉" and DTOC(购买日期) = "2017/09/15"
我只加了 INTO cursor jg1就没有变化
SELECT * FROM 客户订单 WHERE 姓名 = "刘晓辉" and DTOC(购买日期) = "2017/09/15" INTO cursor jg1
后来加了二句可以了。谢谢
thisform.grid1.RecordSource = "jg1"
thisform.grid1.RecordSourceType = 1
这样应该就可以:
thisform.grid1.RecordSource = ""
SELECT * FROM 客户订单 WHERE 姓名 = "刘晓辉" and DTOC(购买日期) = "2017/09/15" INTO cursor
jg1
thisform.grid1.RecordSource = "jg1"