home *** CD-ROM | disk | FTP | other *** search
Wrap
Visual Basic Active Designer file | 1998-07-14 | 4.7 KB | 142 lines
VERSION 5.00 Begin {C0E45035-5775-11D0-B388-00A0C9055D8E} DataEnvironment1 ClientHeight = 5055 ClientLeft = 1080 ClientTop = 1500 ClientWidth = 6300 _ExtentX = 11113 _ExtentY = 8911 FolderFlags = 7 TypeLibGuid = "{A5DC9AF5-9235-11D1-B067-00DD01144174}" TypeInfoGuid = "{A5DC9AF6-9235-11D1-B067-00DD01144174}" TypeInfoCookie = 0 Version = 4 NumConnections = 1 BeginProperty Connection1 ConnectionName = "Connection1" ConnDispId = 1006 SourceOfData = 3 ConnectionSource= "Provider=MSDASQL.1;Persist Security Info=False;Data Source=NWINDDB" QuoteChar = 96 SeparatorChar = 46 EndProperty NumRecordsets = 1 BeginProperty Recordset1 CommandName = "Command1" CommDispId = 1007 RsDispId = 1010 CommandText = "Customers" ActiveConnectionName= "Connection1" CommandType = 2 dbObjectType = 1 Locktype = 2 CommandCursorLocation= 2 Expanded = -1 'True IsRSReturning = -1 'True NumFields = 11 BeginProperty Field1 Precision = 0 Size = 5 Scale = 0 Type = 200 Name = "CustomerID" Caption = "CustomerID" EndProperty BeginProperty Field2 Precision = 0 Size = 40 Scale = 0 Type = 200 Name = "CompanyName" Caption = "CompanyName" EndProperty BeginProperty Field3 Precision = 0 Size = 30 Scale = 0 Type = 200 Name = "ContactName" Caption = "ContactName" EndProperty BeginProperty Field4 Precision = 0 Size = 30 Scale = 0 Type = 200 Name = "ContactTitle" Caption = "ContactTitle" EndProperty BeginProperty Field5 Precision = 0 Size = 60 Scale = 0 Type = 200 Name = "Address" Caption = "Address" EndProperty BeginProperty Field6 Precision = 0 Size = 15 Scale = 0 Type = 200 Name = "City" Caption = "City" EndProperty BeginProperty Field7 Precision = 0 Size = 15 Scale = 0 Type = 200 Name = "Region" Caption = "Region" EndProperty BeginProperty Field8 Precision = 0 Size = 10 Scale = 0 Type = 200 Name = "PostalCode" Caption = "PostalCode" EndProperty BeginProperty Field9 Precision = 0 Size = 15 Scale = 0 Type = 200 Name = "Country" Caption = "Country" EndProperty BeginProperty Field10 Precision = 0 Size = 24 Scale = 0 Type = 200 Name = "Phone" Caption = "Phone" EndProperty BeginProperty Field11 Precision = 0 Size = 24 Scale = 0 Type = 200 Name = "Fax" Caption = "Fax" EndProperty NumGroups = 0 ParamCount = 0 RelationCount = 0 AggregateCount = 0 EndProperty End Attribute VB_Name = "DataEnvironment1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub rsCommand1_WillChangeField(ByVal cFields As Long, ByVal Fields As Variant, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset) reply = MsgBox("This record's fields have changed. Proceed?", vbYesNo) If reply = vbNo Then DataEnvironment1.rsCommand1.CancelUpdate End If End Sub