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 = 8
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 = 7
Text = "Description:"
Top = 3240
Width = 1215
End
Begin TextBox Text2
Alignment = 1 'Right Justify
BackColor = &H00C0C0C0&
Height = 1935
Left = 360
MultiLine = -1 'True
TabIndex = 6
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 Command5
Caption = "Help"
Height = 330
Left = 5970
TabIndex = 5
Top = 5220
Width = 1395
End
Begin CommandButton Command4
Caption = "Cancel"
Height = 330
Left = 4350
TabIndex = 4
Top = 5220
Width = 1365
End
Begin TextBox Text1
Height = 2535
Left = 240
MultiLine = -1 'True
ScrollBars = 3 'Both
TabIndex = 3
Top = 240
Width = 8055
End
Begin CommandButton Command3
Caption = "OK"
Height = 330
Left = 2760
TabIndex = 2
Top = 5220
Width = 1365
End
Begin CommandButton Command2
Caption = "Set SQL Query"
Height = 330
Left = 1140
TabIndex = 1
Top = 5220
Width = 1395
End
Begin Menu MenuFile
Caption = "&File"
Begin Menu MenuFileExit
Caption = "&Exit"
End
End
Sub Command1_Click ()
End Sub
Sub Command2_Click ()
If Text1.Text = "" Then
MsgBox ("You must have and SQL Query inorder to Pass to Crystal.")
Else
Main.Report1.SQLQuery = Text1.Text
Main!StatusBar.Caption = "SQL Query has been Set."
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")