📄 frmcourinfo.frm
字号:
VERSION 5.00
Begin VB.Form frmCourInfo
BorderStyle = 3 'Fixed Dialog
Caption = "药品信息"
ClientHeight = 7080
ClientLeft = 45
ClientTop = 330
ClientWidth = 8760
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 7080
ScaleWidth = 8760
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "更新"
Height = 615
Left = 4560
Picture = "frmCourInfo.frx":0000
Style = 1 'Graphical
TabIndex = 5
Top = 3360
Width = 735
End
Begin VB.Data Data1
Caption = "上一条 下一条"
Connect = "Access"
DatabaseName = "C:\Documents and Settings\Sicent\桌面\医院药品进销存系统\药品信息.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 345
Left = 3000
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "药品信息"
Top = 3960
Width = 3015
End
Begin VB.CommandButton cmdExit
Caption = "退出"
Height = 615
Left = 5280
Picture = "frmCourInfo.frx":0172
Style = 1 'Graphical
TabIndex = 4
Top = 3360
Width = 855
End
Begin VB.CommandButton cmdDel
Caption = "删除"
Height = 615
Left = 3840
Picture = "frmCourInfo.frx":06A4
Style = 1 'Graphical
TabIndex = 3
Top = 3360
Width = 735
End
Begin VB.CommandButton cmdAdd
Caption = "增加"
Height = 615
Left = 3120
Picture = "frmCourInfo.frx":079E
Style = 1 'Graphical
TabIndex = 2
Top = 3360
Width = 735
End
Begin VB.TextBox txtCourID
DataField = "药品名称"
DataSource = "Data1"
Height = 1815
Left = 2880
TabIndex = 1
Top = 360
Width = 1935
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "药品名称显示"
Height = 180
Left = 1200
TabIndex = 0
Top = 600
Width = 1080
End
End
Attribute VB_Name = "frmCourInfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Sub cmdAdd_Click()
Data1.Recordset.AddNew
End Sub
Private Sub cmdDel_Click()
If MsgBox("真的需要删除当前记录?", vbYesNo, "信息提示") = vbYes Then
Data1.Recordset.Delete
Data1.Recordset.MoveNext
If Data1.Recordset.EOF Then
Data1.Recordset.MoveFirst
End If
End If
End Sub
Private Sub cmdExit_Click()
Unload Me
End Sub
Private Sub Command1_Click()
Data1.UpdateRecord
Data1.Recordset.Bookmark = Data1.Recordset.LastModified
End Sub
Private Sub Command2_Click()
Data1.UpdateRecord
Data1.Recordset.Bookmark = Data1.Recordset.LastModified
End Sub
Private Sub Form_Load()
End Sub
Private Sub Label3_Click()
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -