(求助)为什么我会出错?

songster7309 2003-01-02 05:13:09
Select * form 密码表
where 用户名称=thisform.text1.value AND
用户密码=thisform.text2.value
into cursor tmp
if_TALLY=0
thisform.keycount=thisform.keycount+1
??CHR(7)
=MessageBOX("密码输入有误,请重新输入!")
if thisform.keycount>3
??CHR(7)
=MessageBOX("您已三次密码输入错误!")
thisform.release
return
Endif
Else
??CHR(7)
=MessageBOX("密码不正确,您无权使用!")
use in tmp
thisform.release
endif

我是按照教材上做的,可是第一句系统显示的错误为“命令中含有不能识别的短语或关键字”
敬请赐教
我的QQ108652474 邮箱songster7309@sina.com
...全文
59 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
magnetmoon 2003-01-02
  • 打赏
  • 举报
回复
每句加个分号试试
Select * form 密码表 ;
where 用户名称=thisform.text1.value AND ;
用户密码=thisform.text2.value ;
into cursor tmp
along407 2003-01-02
  • 打赏
  • 举报
回复
Select * form 密码表
where 用户名称=thisform.text1.value AND
用户密码=thisform.text2.value
into cursor tmp
??
是不是打错字了:(应该是from呀)
Select * from 密码表
where 用户名称=thisform.text1.value AND
用户密码=thisform.text2.value
into cursor tmp
还有换行时加';'
liuri璇玑 2003-01-02
  • 打赏
  • 举报
回复
Select * form 密码表 ;
where 用户名称=thisform.text1.value AND ;
用户密码=thisform.text2.value ;
into cursor tmp ;

每句后面加分号;试试

2,727

社区成员

发帖
与我相关
我的任务
社区描述
VFP,是Microsoft公司推出的数据库开发软件,用它来开发数据库,既简单又方便。
社区管理员
  • VFP社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧