home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{FAEEE763-117E-101B-8933-08002B2F4F5A}#1.1#0"; "DBLIST32.OCX"
- Begin VB.Form frmCountries
- Caption = "Large Countries"
- ClientHeight = 2070
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 3975
- LinkTopic = "Form1"
- ScaleHeight = 2070
- ScaleWidth = 3975
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton cmdSort
- Caption = "Sort by 1995 Population"
- Height = 615
- Left = 1800
- TabIndex = 1
- Top = 120
- Width = 2055
- End
- Begin MSDBCtls.DBList dblCountries
- Bindings = "12-3-2.frx":0000
- Height = 1815
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 1455
- _ExtentX = 2566
- _ExtentY = 3201
- _Version = 327680
- ListField = "Country"
- BoundColumn = "country"
- End
- Begin VB.Data datCountries
- Caption = "Countries"
- Connect = "Access"
- DatabaseName = "MEGACTY2.MDB"
- DefaultCursorType= 0 'DefaultCursor
- DefaultType = 2 'UseODBC
- Exclusive = 0 'False
- Height = 345
- Left = 1800
- Options = 0
- ReadOnly = 0 'False
- RecordsetType = 1 'Dynaset
- RecordSource = "Countries"
- Top = 1560
- Visible = 0 'False
- Width = 2055
- End
- Begin VB.Label lblUnit
- BorderStyle = 1 'Fixed Single
- Height = 255
- Left = 2760
- TabIndex = 3
- Top = 1080
- Width = 1095
- End
- Begin VB.Label lblCurrency
- Caption = "Currency:"
- Height = 255
- Left = 1800
- TabIndex = 2
- Top = 1080
- Width = 735
- End
- Attribute VB_Name = "frmCountries"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdSort_Click()
- datCountries.RecordSource = "SELECT * FROM Countries " & _
- "ORDER by pop1995 DESC"
- datCountries.Refresh
- End Sub
- Private Sub dblCountries_dblClick()
- datCountries.Recordset.FindFirst _
- "Country =" & "'" & dblCountries.Text & "'"
- lblUnit.Caption = datCountries.Recordset.Fields("currency").Value
- End Sub
- Private Sub Form_Load()
- datCountries.DatabaseName = App.Path & "\MEGACTY2.MDB"
- End Sub
-