基本信息
源码名称:vb通讯录管理系统源码(含数据库)
源码大小:2.02M
文件格式:.rar
开发语言:ASP
更新时间:2016-07-07
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559
本次赞助数额为: 2 元×
微信扫码支付:2 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
内附说明
VERSION 5.00
Begin VB.Form Form5
Caption = "按名查找"
ClientHeight = 4950
ClientLeft = 60
ClientTop = 420
ClientWidth = 6450
LinkTopic = "Form5"
ScaleHeight = 4950
ScaleWidth = 6450
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command2
Caption = "清除"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2040
TabIndex = 17
Top = 4440
Width = 2295
End
Begin VB.TextBox Text8
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 975
Left = 1200
TabIndex = 16
Top = 3360
Width = 5055
End
Begin VB.TextBox Text7
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1560
TabIndex = 14
Top = 2880
Width = 4095
End
Begin VB.TextBox Text6
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1560
TabIndex = 12
Top = 2160
Width = 4095
End
Begin VB.TextBox Text5
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1560
TabIndex = 10
Top = 1560
Width = 4095
End
Begin VB.TextBox Text4
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 5040
TabIndex = 8
Top = 240
Width = 975
End
Begin VB.TextBox Text3
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 4200
TabIndex = 7
Top = 840
Width = 1815
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1080
TabIndex = 5
Top = 840
Width = 1815
End
Begin VB.CommandButton Command1
Caption = "查找"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 3120
TabIndex = 2
Top = 240
Width = 975
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1080
TabIndex = 0
Top = 240
Width = 1815
End
Begin VB.Label Label8
AutoSize = -1 'True
Caption = "描述"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 240
TabIndex = 15
Top = 3480
Width = 630
End
Begin VB.Label Label7
AutoSize = -1 'True
Caption = "家庭住址"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 120
TabIndex = 13
Top = 2880
Width = 1260
End
Begin VB.Label Label6
AutoSize = -1 'True
Caption = "电子邮件"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 120
TabIndex = 11
Top = 2160
Width = 1260
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "联系方式"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 120
TabIndex = 9
Top = 1560
Width = 1260
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "关系"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 3240
TabIndex = 6
Top = 960
Width = 630
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "性别"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 120
TabIndex = 4
Top = 960
Width = 630
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "年龄"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 4200
TabIndex = 3
Top = 240
Width = 630
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "姓名"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 120
TabIndex = 1
Top = 240
Width = 630
End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim Rst As New ADODB.Recordset
Dim Conn As ADODB.Connection
Dim i As Long
Dim MsgStr As String
Set Conn = CreateObject("ADODB.Connection")
Set Conn = New ADODB.Connection
Conn.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=通讯录;DataSource=MADFROG"
Conn.Open
MsgStr = "select * from 通讯成员 where 姓名='" & Trim(Text1) & "'"
Rst.Open MsgStr, Conn, adOpenKeyset, adLockOptimistic
If Rst.BOF And Rst.EOF Then
MsgBox "不存在该通讯成员!", vbInformation
GoTo LooseMrc
End If
With Rst
Text2.Text = .Fields("性别")
Text3.Text = .Fields("关系")
Text4.Text = .Fields("年龄")
Text5.Text = .Fields("联系方式")
Text6.Text = .Fields("电子邮件")
Text7.Text = .Fields("家庭住址")
Text8.Text = .Fields("描述")
End With
LooseMrc:
Set Rst = Nothing
Set Conn = Nothing
End Sub
Private Sub Command2_Click()
Call ClearForm
End Sub
Private Sub Form_Unload(Cancel As Integer)
Form2.Enabled = True
End Sub
Private Sub CmdExit_Click()
Unload Me
Form2.Enabled = True
End Sub
Sub ClearForm()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
End Sub