home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Reports
- Caption = "Form1"
- ClientHeight = 4410
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 7005
- LinkTopic = "Form1"
- ScaleHeight = 4410
- ScaleWidth = 7005
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Command2
- Caption = "SQL"
- Height = 495
- Left = 3960
- TabIndex = 3
- Top = 3240
- Width = 1455
- End
- Begin VB.CommandButton Command1
- Caption = "Loop"
- Height = 495
- Left = 840
- TabIndex = 2
- Top = 3240
- Width = 1335
- End
- Begin VB.ListBox List2
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 2160
- Left = 3480
- TabIndex = 1
- Top = 720
- Width = 2655
- End
- Begin VB.ListBox List1
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 2160
- Left = 480
- TabIndex = 0
- Top = 720
- Width = 2655
- End
- Attribute VB_Name = "Reports"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- Dim rs As Recordset
- Set rs = MainForm.Data2.Recordset
- With rs
- While Not .EOF
- List1.AddItem (.Fields!Name & ":" & .Fields!DateSent & ":" & .Fields!issueNumber)
- .MoveNext
- Wend
- End With
- End Sub
- Private Sub Command2_Click()
- Dim q As QueryDef, rs As Recordset
- Set q = MainForm.Data1.Database.CreateQueryDef("", "SELECT * FROM MailingDate ORDER BY Name DESC")
- Set rs = q.OpenRecordset
- With rs
- While Not .EOF
- List2.AddItem (.Fields!Name & ":" & .Fields!DateSent & ":" & .Fields!issueNumber)
- .MoveNext
- Wend
- End With
- End Sub
-