home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form EditRecipient
- BorderStyle = 3 'Fixed Dialog
- Caption = "Edit Recipient"
- ClientHeight = 5145
- ClientLeft = 2760
- ClientTop = 3750
- ClientWidth = 6030
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 5145
- ScaleWidth = 6030
- ShowInTaskbar = 0 'False
- Begin VB.Data Data1
- Connect = "Access"
- DatabaseName = "C:\pcplus\vbwkshp\issue159\newslist.mdb"
- DefaultCursorType= 0 'DefaultCursor
- DefaultType = 2 'UseODBC
- Exclusive = 0 'False
- Height = 375
- Left = 1080
- Options = 0
- ReadOnly = 0 'False
- RecordsetType = 1 'Dynaset
- RecordSource = "Recipients"
- Top = 1680
- Width = 1455
- End
- Begin VB.CommandButton Update
- Caption = "Update"
- Height = 375
- Left = 4680
- TabIndex = 5
- Top = 600
- Width = 1215
- End
- Begin VB.TextBox xAddress
- DataField = "EMail"
- DataSource = "Data1"
- Height = 375
- Left = 1080
- TabIndex = 2
- Top = 1080
- Width = 3135
- End
- Begin VB.TextBox xName
- DataField = "Name"
- DataSource = "Data1"
- Height = 375
- Left = 1080
- TabIndex = 1
- Top = 480
- Width = 3135
- End
- Begin VB.CommandButton OKButton
- Caption = "Exit"
- Height = 375
- Left = 4680
- TabIndex = 0
- Top = 120
- Width = 1215
- End
- Begin VB.Label Label2
- Caption = "Address"
- Height = 255
- Left = 240
- TabIndex = 4
- Top = 1080
- Width = 735
- End
- Begin VB.Label Label1
- Caption = "Name"
- Height = 255
- Left = 240
- TabIndex = 3
- Top = 480
- Width = 735
- End
- Attribute VB_Name = "EditRecipient"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Form_Activate()
- Data1.Refresh
- End Sub
- Private Sub OKButton_Click()
- Me.Hide
- End Sub
- Private Sub Update_Click()
- With Data1.Recordset
- .Edit
- !Name = xName.Text
- !EMail = xAddress.Text
- .Update
- End With
- End Sub
-