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

📄 frmtambahsal.frm

📁 Billing Internet Cafe
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form frmtambahsal 
   BackColor       =   &H00EFF2EC&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Tambah Deposit Members"
   ClientHeight    =   4680
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   10095
   Icon            =   "frmtambahsal.frx":0000
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4680
   ScaleWidth      =   10095
   StartUpPosition =   2  'CenterScreen
   Begin VB.CommandButton XPButton2 
      Caption         =   "Tambah"
      Height          =   495
      Left            =   2880
      TabIndex        =   2
      Top             =   3840
      Width           =   1455
   End
   Begin VB.CommandButton XPButton3 
      Caption         =   "Hapus Member"
      Height          =   495
      Left            =   5640
      TabIndex        =   3
      Top             =   3840
      Width           =   1455
   End
   Begin VB.CommandButton XPButton6 
      Caption         =   "Tutup"
      Height          =   495
      Left            =   8280
      TabIndex        =   4
      Top             =   3840
      Width           =   1455
   End
   Begin VB.CommandButton XPButton1 
      Caption         =   "View Members"
      Height          =   495
      Left            =   240
      TabIndex        =   1
      Top             =   3840
      Width           =   1455
   End
   Begin VB.Frame XPFrame1 
      Caption         =   "Tambah Deposit Member"
      Height          =   3135
      Left            =   2880
      TabIndex        =   10
      Top             =   480
      Visible         =   0   'False
      Width           =   4455
      Begin VB.TextBox XPText3 
         DataField       =   "Nama"
         DataSource      =   "Adodc1"
         Height          =   285
         Left            =   1440
         TabIndex        =   5
         Top             =   360
         Width           =   2295
      End
      Begin VB.TextBox XPText1 
         DataField       =   "Deposit"
         DataSource      =   "Adodc1"
         Height          =   285
         Left            =   1440
         TabIndex        =   6
         Top             =   840
         Width           =   2295
      End
      Begin VB.TextBox XPText2 
         Height          =   285
         Left            =   1440
         TabIndex        =   7
         Top             =   1320
         Width           =   2295
      End
      Begin VB.CommandButton XPButton4 
         Caption         =   "Save"
         Height          =   375
         Left            =   1440
         TabIndex        =   8
         Top             =   1800
         Width           =   1095
      End
      Begin VB.CommandButton XPButton5 
         Caption         =   "Tutup"
         Height          =   375
         Left            =   2640
         TabIndex        =   9
         Top             =   1800
         Width           =   1095
      End
      Begin VB.TextBox XPText4 
         DataField       =   "Deposit"
         DataSource      =   "Adodc1"
         Enabled         =   0   'False
         Height          =   285
         Left            =   2280
         TabIndex        =   15
         Top             =   2520
         Width           =   1455
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "Sisa Deposit"
         Height          =   255
         Left            =   240
         TabIndex        =   14
         Top             =   840
         Width           =   1095
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "Tambahan"
         Height          =   255
         Left            =   240
         TabIndex        =   13
         Top             =   1320
         Width           =   1095
      End
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Caption         =   "Deposit Baru"
         Height          =   255
         Left            =   1200
         TabIndex        =   12
         Top             =   2520
         Width           =   1095
      End
      Begin VB.Line Line1 
         BorderColor     =   &H00808080&
         X1              =   480
         X2              =   4200
         Y1              =   2400
         Y2              =   2400
      End
      Begin VB.Label Label4 
         BackStyle       =   0  'Transparent
         Caption         =   "Nama User"
         Height          =   255
         Left            =   240
         TabIndex        =   11
         Top             =   360
         Width           =   1095
      End
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "frmtambahsal.frx":B532
      Height          =   3375
      Left            =   240
      TabIndex        =   0
      Top             =   240
      Width           =   9495
      _ExtentX        =   16748
      _ExtentY        =   5953
      _Version        =   393216
      AllowUpdate     =   0   'False
      HeadLines       =   1
      RowHeight       =   15
      FormatLocked    =   -1  'True
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ColumnCount     =   6
      BeginProperty Column00 
         DataField       =   "User"
         Caption         =   "Nama User"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   1
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1033
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   "Nama"
         Caption         =   "Nama Asli"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1033
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column02 
         DataField       =   "alamat"
         Caption         =   "Alamat"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1033
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column03 
         DataField       =   "telp"
         Caption         =   "No Telp"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1033
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column04 
         DataField       =   "Password"
         Caption         =   "Password"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1033
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column05 
         DataField       =   "Deposit"
         Caption         =   "Deposit"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   1
            Format          =   "###,###,###"
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1033
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
         BeginProperty Column02 
         EndProperty
         BeginProperty Column03 
         EndProperty
         BeginProperty Column04 
         EndProperty
         BeginProperty Column05 
            Alignment       =   1
         EndProperty
      EndProperty
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   2160
      Top             =   7920
      Visible         =   0   'False
      Width           =   1215
      _ExtentX        =   2143
      _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=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
End
Attribute VB_Name = "frmtambahsal"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Form_Load()
On Error Resume Next
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & pathdata & "black.BLC;Persist Security Info=False;Jet OLEDB:Database Password=myblackpearl87"
Adodc1.RecordSource = "Select * from member "
'Adodc1.Refresh

End Sub

Private Sub XPButton1_Click()
Adodc1.Refresh
End Sub

Private Sub XPButton2_Click()
XPFrame1.Visible = True
End Sub

Private Sub XPButton3_Click()
On Error GoTo err
If MsgBox("Anda yakin akan menghapus member", vbYesNo, "Konfirmasi") = vbYes Then
Adodc1.Recordset.Delete
End If
err:
If err.Number = 91 Then
MsgBox "Tidak ada data yang akan di hapus", vbOKOnly, "Blank Data"
End If

End Sub

Private Sub XPButton4_Click()
On Error Resume Next
Adodc1.Recordset.MoveFirst
XPFrame1.Visible = False
End Sub

Private Sub XPButton5_Click()
XPFrame1.Visible = False

End Sub

Private Sub XPButton6_Click()
Unload Me
End Sub

Private Sub XPText2_Change()
XPText4.Text = Val(XPText2.Text) + Val(XPText1.Text)
End Sub

⌨️ 快捷键说明

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