⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kehu.frm

📁 煤炭销售管理系统.完成煤炭销售的日常管理工作,和重车计量系统空车计量系统配合使用.
💻 FRM
📖 第 1 页 / 共 2 页
字号:
      Top             =   3750
      Width           =   1932
   End
   Begin VB.TextBox txtFields 
      DataField       =   "开户银行"
      DataSource      =   "datPrimaryRS"
      Height          =   285
      Index           =   12
      Left            =   1920
      TabIndex        =   9
      Top             =   3750
      Width           =   3375
   End
   Begin VB.TextBox txtFields 
      DataField       =   "传真号码"
      DataSource      =   "datPrimaryRS"
      Height          =   285
      Index           =   10
      Left            =   4200
      TabIndex        =   8
      Top             =   3180
      Width           =   1092
   End
   Begin VB.TextBox txtFields 
      DataField       =   "电话号码"
      DataSource      =   "datPrimaryRS"
      Height          =   285
      Index           =   9
      Left            =   1920
      TabIndex        =   6
      Top             =   3180
      Width           =   1092
   End
   Begin VB.TextBox txtFields 
      DataField       =   "邮政编码"
      DataSource      =   "datPrimaryRS"
      Height          =   285
      Index           =   6
      Left            =   6960
      TabIndex        =   5
      Top             =   2610
      Width           =   1932
   End
   Begin VB.TextBox txtFields 
      DataField       =   "地址"
      DataSource      =   "datPrimaryRS"
      Height          =   285
      Index           =   4
      Left            =   1920
      TabIndex        =   3
      Top             =   2610
      Width           =   3375
   End
   Begin VB.TextBox txtFields 
      DataField       =   "联系人姓名"
      DataSource      =   "datPrimaryRS"
      Height          =   285
      Index           =   2
      Left            =   6960
      TabIndex        =   2
      Top             =   2040
      Width           =   1932
   End
   Begin VB.TextBox txtFields 
      DataField       =   "客户名称"
      DataSource      =   "datPrimaryRS"
      Height          =   285
      Index           =   1
      Left            =   1920
      TabIndex        =   0
      Top             =   2040
      Width           =   3375
   End
   Begin MSAdodcLib.Adodc datPrimaryRS 
      Align           =   2  'Align Bottom
      Height          =   330
      Left            =   0
      Top             =   6870
      Width           =   10140
      _ExtentX        =   17886
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   3
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "DSN=dzqch"
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   "dzqch"
      OtherAttributes =   ""
      UserName        =   "sa"
      Password        =   ""
      RecordSource    =   $"kehu.frx":5839
      Caption         =   " "
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.Label lblLabels 
      Caption         =   "客户名称:"
      Height          =   252
      Index           =   1
      Left            =   720
      TabIndex        =   25
      Top             =   2040
      Width           =   1020
   End
   Begin VB.Label lblLabels 
      Caption         =   "地址:"
      Height          =   252
      Index           =   4
      Left            =   720
      TabIndex        =   24
      Top             =   2610
      Width           =   1020
   End
   Begin VB.Label lblLabels 
      Caption         =   "电话号码:"
      Height          =   252
      Index           =   9
      Left            =   720
      TabIndex        =   23
      Top             =   3180
      Width           =   1020
   End
   Begin VB.Label lblLabels 
      Caption         =   "开户银行:"
      Height          =   252
      Index           =   12
      Left            =   720
      TabIndex        =   22
      Top             =   3750
      Width           =   1020
   End
   Begin VB.Label lblLabels 
      Caption         =   "附注:"
      Height          =   252
      Index           =   15
      Left            =   720
      TabIndex        =   21
      Top             =   4320
      Width           =   1020
   End
   Begin VB.Label lblLabels 
      Caption         =   "电子邮件地址:"
      Height          =   252
      Index           =   14
      Left            =   5640
      TabIndex        =   12
      Top             =   3180
      Width           =   1260
   End
   Begin VB.Label lblLabels 
      Caption         =   "帐号:"
      Height          =   252
      Index           =   13
      Left            =   5640
      TabIndex        =   10
      Top             =   3720
      Width           =   1140
   End
   Begin VB.Label lblLabels 
      Caption         =   "传真号码:"
      Height          =   252
      Index           =   10
      Left            =   3120
      TabIndex        =   7
      Top             =   3180
      Width           =   1020
   End
   Begin VB.Label lblLabels 
      Caption         =   "邮政编码:"
      Height          =   252
      Index           =   6
      Left            =   5640
      TabIndex        =   4
      Top             =   2640
      Width           =   1260
   End
   Begin VB.Label lblLabels 
      Caption         =   "联系人姓名:"
      Height          =   252
      Index           =   2
      Left            =   5640
      TabIndex        =   1
      Top             =   2040
      Width           =   1020
   End
End
Attribute VB_Name = "kehu"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub Command1_Click()
Me.DataGrid1.Visible = Not Me.DataGrid1.Visible
End Sub

Private Sub DataGrid1_DblClick()
'On Error Resume Next
'Dim dw As String
'Me.DataGrid1.Col = 1
'Me.DataGrid1.Row = Me.DataGrid1.RowSel
'dw = Me.DataGrid1.Columns(0).Text
'kehu.datPrimaryRS.RecordSource = "select khxm as 客户名称,lxrm as 联系人姓名,lxrzc as 联系人职称,dz as 地址,yzbm as 邮政编码,dhhm as 电话号码,czhm as 传真号码,fktj as 付款条件,khyh as 开户银行,zh as 帐号,email as 电子邮件地址,fz as 附注 from 供应商 where khxm like '%" & dw & "%' order by khxm"
'kehu.datPrimaryRS.Refresh
'Me.DataGrid1.Visible = False

End Sub

Private Sub Form_Load()
On Error Resume Next
kehu.datPrimaryRS.ConnectionString = connetstr
datPrimaryRS.refresh
'Dim Data As ADODB.Connection
'Dim rest As ADODB.Recordset
'Set Data = New ADODB.Connection
'Set rest = New ADODB.Recordset
'Data.ConnectionString = connetstr
'Data.Open
kehu.datPrimaryRS.RecordSource = "select khxm as 客户名称,lxrm as 联系人姓名,lxrzc as 联系人职称,dz as 地址,yzbm as 邮政编码,dhhm as 电话号码,czhm as 传真号码,fktj as 付款条件,khyh as 开户银行,zh as 帐号,email as 电子邮件地址,fz as 附注 from 供应商  order by khxm"
'
Me.DataGrid1.refresh
'‘Me.DataGrid1.ColWidth(0) = 100
End Sub

Private Sub Form_Unload(Cancel As Integer)
  'flxs.Show
  Screen.MousePointer = vbDefault
End Sub

Private Sub datPrimaryRS_Error(ByVal ErrorNumber As Long, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, fCancelDisplay As Boolean)
  '错误处理程序代码置于此处
  '想要忽略错误,注释掉下一行
  '想要捕获它们,在此添加代码以处理它们
  MsgBox "Data error event hit err:" & Description
End Sub

Private Sub datPrimaryRS_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
  '为这个 recordset 显示当前记录位置
  datPrimaryRS.Caption = "Record: " & CStr(datPrimaryRS.Recordset.AbsolutePosition)
End Sub

Private Sub datPrimaryRS_WillChangeRecord(ByVal adReason As ADODB.EventReasonEnum, ByVal cRecords As Long, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
  '验证代码置于此处
  '下列动作发生时该事件被调用
  Dim bCancel As Boolean

  Select Case adReason
  Case adRsnAddNew
  Case adRsnClose
  Case adRsnDelete
  Case adRsnFirstChange
  Case adRsnMove
  Case adRsnRequery
  Case adRsnResynch
  Case adRsnUndoAddNew
  Case adRsnUndoDelete
  Case adRsnUndoUpdate
  Case adRsnUpdate
  End Select

  If bCancel Then adStatus = adStatusCancel
End Sub

Private Sub cmdAdd_Click()
  On Error GoTo AddErr
  datPrimaryRS.Recordset.AddNew
  Exit Sub
AddErr:
  MsgBox err.Description
End Sub

Private Sub cmdDelete_Click()
  On Error GoTo DeleteErr
  With datPrimaryRS.Recordset
    .delete
    .MoveNext
    If .EOF Then .MoveLast
  End With
  Exit Sub
DeleteErr:
  MsgBox err.Description
End Sub

Private Sub cmdRefresh_Click()
  '只有多用户应用程序需要
  On Error GoTo RefreshErr
  datPrimaryRS.refresh
  Exit Sub
RefreshErr:
  MsgBox err.Description
End Sub

Private Sub cmdUpdate_Click()
  On Error GoTo UpdateErr
  datPrimaryRS.Recordset.UpdateBatch adAffectAll
  Exit Sub
UpdateErr:
  MsgBox err.Description
End Sub

Private Sub cmdClose_Click()
  Unload Me
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -