Text = "FROM and WHERE parts of the query can be changed if required. New ranges and links can be added and existing ones changed."
Top = 4320
Width = 7575
End
Begin TextBox Text4
BackColor = &H00C0C0C0&
BorderStyle = 0 'None
Height = 735
Left = 480
MultiLine = -1 'True
TabIndex = 6
Text = "SELECT lists fields used in the report including those in formulas, totals, sorts, selections and ranges. FROM lists tables in the report followed by their aliases. WHERE specifies field ranges and links between tables."
Top = 3600
Width = 7575
End
Begin TextBox Text3
BackColor = &H00C0C0C0&
BorderStyle = 0 'None
Height = 255
Left = 480
TabIndex = 5
Text = "Description:"
Top = 3240
Width = 1215
End
Begin TextBox Text2
Alignment = 1 'Right Justify
BackColor = &H00C0C0C0&
Height = 1935
Left = 360
MultiLine = -1 'True
TabIndex = 4
Top = 3000
Width = 7815
End
Begin SSPanel Panel3D1
Alignment = 1 'Left Justify - MIDDLE
BackColor = &H00C0C0C0&
BevelInner = 1 'Inset
BorderWidth = 1
Font3D = 0 'None
Height = 2175
Left = 240
TabIndex = 0
Top = 2880
Width = 8055
End
Begin CommandButton Command4
Caption = "Cancel"
Height = 330
Left = 4560
TabIndex = 3
Top = 5220
Width = 2325
End
Begin TextBox Text1
Height = 2535
Left = 240
MultiLine = -1 'True
ScrollBars = 3 'Both
TabIndex = 2
Top = 240
Width = 8055
End
Begin CommandButton Command2
Caption = "Set SQL Query"
Height = 330
Left = 1140
TabIndex = 1
Top = 5220
Width = 2115
End
Sub Command1_Click ()
End Sub
Sub Command2_Click ()
If Text1.Text = "" Then
InfoBox = MsgBox("Please Enter an SQL Query", 0 + 48, "VBX Message")
Else
Main.Report1.SQLQuery = Text1.Text
Main.statusbar.Caption = "SQL Query has been Set!"
Unload Me
End If
End Sub
Sub Command3_Click ()
Unload Me
End Sub
Sub Command4_Click ()
Unload Me
End Sub
Sub Command5_Click ()
RCode = Shell("Winhelp c:\crw\crw.hlp", 3)
If RCode = False Then
MsgBox ("RedPoint cannot find the Crystal Help file in C:\CRW directory")