📄 frmchangeplace.frm
字号:
VERSION 5.00
Begin VB.Form frmChangePlace
Caption = "修改地点信息"
ClientHeight = 2685
ClientLeft = 60
ClientTop = 345
ClientWidth = 9405
ControlBox = 0 'False
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 2685
ScaleWidth = 9405
WindowState = 2 'Maximized
Begin VB.Frame Frame1
Caption = "地点信息"
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1455
Left = 120
TabIndex = 2
Top = 240
Width = 9135
Begin VB.TextBox textPlaceName
Height = 375
Left = 3240
TabIndex = 5
Top = 360
Width = 2895
End
Begin VB.TextBox textAboutLine
Height = 375
Left = 5040
TabIndex = 4
Top = 840
Width = 2295
End
Begin VB.TextBox textAboutPlat
Height = 375
Left = 1440
TabIndex = 3
Top = 840
Width = 2295
End
Begin VB.Label Label2
Caption = "地点名称:"
Height = 375
Left = 2280
TabIndex = 8
Top = 480
Width = 855
End
Begin VB.Label Label3
Caption = "相关线路: "
Height = 375
Left = 4080
TabIndex = 7
Top = 960
Width = 975
End
Begin VB.Label Label4
Caption = "相关站点: "
Height = 375
Left = 480
TabIndex = 6
Top = 960
Width = 975
End
End
Begin VB.CommandButton cmdCancel
Caption = "取消"
Height = 495
Left = 5640
TabIndex = 1
Top = 1920
Width = 1575
End
Begin VB.CommandButton cmdOK
Caption = " 修改 "
Height = 495
Left = 1920
TabIndex = 0
Top = 1920
Width = 1575
End
End
Attribute VB_Name = "frmChangePlace"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private iNum As Integer
Private Sub cmdCancel_Click()
Unload Me
Exit Sub
End Sub
Private Sub cmdOK_Click()
Dim sql As String
sql = "update PlaceInfo set PlaceName='" & textPlaceName.Text
sql = sql & "',AboutPlat='" & Me.textAboutPlat & "',AboutLine='" & Me.textAboutLine & "' where PlaceNO=" & iNum
Call TransactSQL(sql, "shujuku") '修改记录
MsgBox "已经更改信息!", vbOKOnly + vbExclamation, "提示"
sql = "select * from PlaceInfo where PlaceNO=" & iNum
Call frmmanagePlace.showTopic '显示修改结果
Call frmmanagePlace.ShowData(sql)
frmmanagePlace.Show
frmmanagePlace.ZOrder 0
Unload Me
End Sub
Private Sub Form_Load()
Dim rs As New ADODB.Recordset
Set rs = getRS(strPublicSQL, "shujuku")
If rs.EOF = False Then
iNum = rs(0)
Me.textPlaceName = rs(1)
Me.textAboutPlat = rs(2)
Me.textAboutLine = rs(3)
End If
rs.Close
End Sub
Private Sub Label1_Click()
End Sub
Private Sub Label6_Click()
End Sub
Private Sub Label15_Click()
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -