如何通过密码验证进入不同的窗体
窗体1.show end if if 密码验证.text="乙" then 窗体2.show end if
密码窗体代码
form1上面有一个按钮 Private Sub Command1_Click()Form2.Show End Sub form2用作登录界面 form2的代码如下 Dim xlapp As Excel.Application 'Excel对象 Dim xlbook As Excel.Workbook '工作簿 Dim xlsheet As Excel.Worksheet '工作表 Private Sub Command1_Click()If Text1.Text = "1234" Th...
急~~!!怎样在ACCESS中做一个带有用户名、密码的登陆窗体?
2.登录窗体中【进入系统】按钮的单击事件代码:if isnull(me.用户名) or isnull(me.登录密码) then msgbox "请输入正确的用户名和密码!"elseif isnull(DLookup("密码","用户表","用户名='" & me.用户名 & "'")) then msgbox "用户名不存在!"elseif DLookup("密码","用户表",...
Excel VBA 用户窗体设置\/一步一步代你设计EXCEL用户+密码登录界面
首先,创建一个名为"窗体登录(用户名+密码).xlsm"的新Excel文件,启用宏。在Sheet1上,将名称改为"Main",添加一个命令按钮CmdLogin,显示为"重新登录",作为主界面入口。接着,添加一张名为"tb用户"的工作表,隐藏重要信息,只在后台存储用户数据。在Visual Basic编辑器(VBE)中插入用户窗体Usf_Log...
c#window登录窗口记住密码的代码怎么写?
<user UserName="" Password="" \/> <\/users>程序代码如下:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Xml;using System.Xml.Linq;namespace WindowsPwd{ public ...
vb 怎么实现输入密码才允许访问
有个最简单的:在输入密码的窗体写:dim passwd as string passwd = "你需要设定的密码"if textbox1.text = passwd then form2.show else msgbox "密码错误,请重新输入!"end if
求个access 的密码登录窗体代码用VBA实现的那种
mypasswords = DLookup("password", "用户密码", "[username]=" & "'" & Me!用户名 & "'")If IsNull(Me.密码) = False And Me.密码 = mypasswords Then Me.Visible = False DoCmd.Close acForm, "登陆背景", acSaveYes If Me!用户名 = "管理员" Then DoCmd.OpenForm "考勤管理...
access 窗体密码
在窗体的Open事件中添加代码:dim PW as string, I as integer for I = 1 to 3 PW=inputbox("?","请输入密码:")if PW=dlookup("Password", "tblPW", "ID=1") then exit for else select case I case 1 msgbox "密码错误,还有2次机会"case 2 msgbox "密码错误,还有1次机会"case...
VB登陆窗体代码。数据库呢是access的 数据库名为data 有一个登陆表 有...
源代码:Private Con_Access As Connections Private Sub Form_Load()Set Con_Access = New Connection With Con_Access .Provider = "microsoft.jet.oledb.4.0".ConnectionString = App.Path & "\\table\\ship.mdb".Open End With End Sub Private Sub cmdOK_Click()Dim cmd As New Command Dim ...
C#窗体密码修改
用数据库随便建个表 "用户信息表" 两个列:"用户名" "密码" 顺便添加个 用户名: admin 密码:admin 设置用户名为主键。代码部分:using System.Data.SqlClient;string sqlStr="Data Source=(local);Initial Catalog=db_LibraryMIS;Integrated Security=True";SqlConnection myCon = new Sql...