早教吧作业答案频道 -->其他-->
IfText2.Text=Text3.TextThenSetadoRs=adoCon.Execute(“insertintoTableuservalues(“&Text6&”,“&Text1&”,“&Text2&”,“&Check1&”,“&Check2&”)”)MsgBox“注册成功!”,48,“用户管理系统”Text1.Text=""Text2.
题目详情
If Text2.Text=Text3.Text Then
Set adoRs=adoCon.Execute(“insert into Table_user values(“& Text6 &”,“& Text1 &”,
“& Text2 &”,“& Check1 &”,“& Check2 &”)”)
MsgBox“注册成功!”,48,“用户管理系统”
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Frm_YHGL.Hide
这是实现插入功能的,&是取地址,“& Check1
Call main
Adodc1.RecordSource=”select * from Table_user”
Adodc1.Refresh
If Adodc1.Recordset.RecordCount>0 Then
Adodc1.Recordset.MoveLast
Text6.Text=Val(Adodc1.Recordset.Fields(“ID”))+1 还要这句不懂
Else
Text6.Text=1 ,
Set adoRs=adoCon.Execute(“insert into Table_user values(“& Text6 &”,“& Text1 &”,
“& Text2 &”,“& Check1 &”,“& Check2 &”)”)
MsgBox“注册成功!”,48,“用户管理系统”
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Frm_YHGL.Hide
这是实现插入功能的,&是取地址,“& Check1
Call main
Adodc1.RecordSource=”select * from Table_user”
Adodc1.Refresh
If Adodc1.Recordset.RecordCount>0 Then
Adodc1.Recordset.MoveLast
Text6.Text=Val(Adodc1.Recordset.Fields(“ID”))+1 还要这句不懂
Else
Text6.Text=1 ,
▼优质解答
答案和解析
Execute(“insert into Table_user values(“& Text6 &”,“& Text1 &”,
“& Text2 &”,“& Check1 &”,“& Check2 &”)”)
你得分开来看,并不是你看到的"& Check1 &” ,正确的应该是"," | & Check1 & | "," .
其中“&”并不是取地址,而是字符串连接符,是字符“,” 与 Check1 与 “,” 三个字符串的连接!仔细看看SQL语组成结构吧.
If Adodc1.Recordset.RecordCount>0 Then :这句是判断当前数据库中记录总数
Adodc1.Recordset.MoveLast ':这句是将当前游标移动到最后一条记录
Text6.Text=Val(Adodc1.Recordset.Fields(“ID”))+1 还要这句不懂:这句是将最后一条记录的ID值加1后放到Text6中
Else
Text6.Text=1 ,这句是前面的判断条件不成立(即数据库当前无记录)时给Text6赋值"1” .
“& Text2 &”,“& Check1 &”,“& Check2 &”)”)
你得分开来看,并不是你看到的"& Check1 &” ,正确的应该是"," | & Check1 & | "," .
其中“&”并不是取地址,而是字符串连接符,是字符“,” 与 Check1 与 “,” 三个字符串的连接!仔细看看SQL语组成结构吧.
If Adodc1.Recordset.RecordCount>0 Then :这句是判断当前数据库中记录总数
Adodc1.Recordset.MoveLast ':这句是将当前游标移动到最后一条记录
Text6.Text=Val(Adodc1.Recordset.Fields(“ID”))+1 还要这句不懂:这句是将最后一条记录的ID值加1后放到Text6中
Else
Text6.Text=1 ,这句是前面的判断条件不成立(即数据库当前无记录)时给Text6赋值"1” .
看了 IfText2.Text=T...的网友还看了以下:
这个VB语句什么意思?If((Text1.text"")and(combo1.Text""))th 2020-05-02 …
vb中这句话“Ife="+"Or"-"Or"×"Or"÷"”为什么是错的啊?d=Len(Text1 2020-06-02 …
C#里的and和or怎么表示?比如我想写一个if(this.textBox1.Text=""ort 2020-06-15 …
vb中integer类型四舍五入问题.我的程序很简单,是这样的PrivateSubCommand1 2020-06-27 …
有关msgbox?假定程序中有以下语句:answer=MsgBox("String1","Stri 2020-07-12 …
msgbox跟个空格再加个a是什么意思Dimaa=inputbox("请输入数字或字母","标题" 2020-07-18 …
IfText2.Text=Text3.TextThenSetadoRs=adoCon.Execut 2020-07-26 …
有关VB的一些问题DimTodayasDate,OtherDayasDateToday=Nowtxt 2020-11-01 …
vb计算问题Constpi=3.14159DimmessPrivateSubCommand1Clic 2020-11-01 …
VB编程中,请问怎样实现判断textbox1是否含有textbox2的内容,具体参见补充比如text 2021-01-16 …