当前位置:首页
开发技术指南» 文章正文
    引言:

 ·100分求jfreechart javadoc api 文档    »显示摘要«
    摘要: email: skytechnj@sina.com ......
    摘要: 为什么不用asp,或jsp呢?php的资源好像很少,如果给你重新选择,你会选什么? ......


用户登陆后显示的记录(ACCESS)

代码:  
  begin  
  with   adotable1   do  
  begin  
  if   ADOTable1.Lookup(kh,edit1.Text,mm)=edit2.Text   then  
      begin  
            form3.show;  
        end  
  else  
        showmessage(对不起,没有该用户);  
  end;  
  end;  
  整个程序只有一张表(用户表),进入form3后..显示的是第一条记录的信息,如果实现用哪个用户名登陆,进入form3后显示的就是哪个用户的信息?代码该怎么写?谢谢啦!  
 

NO.1   作者: hqhhh

begin  
  with   adotable1   do  
  begin  
      with   ADOQuery1   do  
      begin  
          Close;  
          SQL.Clear;  
          SQL.Add(select   *   from   用户表   where   用户名=   +   QuotedStr(Edit1.Text)   +     and   用户密码=   +   QuotedStr(Edit2.Text));  
          Open;  
          if   not   IsEmpty   then  
              form3.show  
          else   showmessage(对不起,没有该用户);  
      end;  
  end;  
 


    摘要: rt ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE