VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form1 
   Caption         =   "JamTechSystems - Custom Built PC Quotation System"
   ClientHeight    =   10770
   ClientLeft      =   1830
   ClientTop       =   2115
   ClientWidth     =   14850
   LinkTopic       =   "Form1"
   ScaleHeight     =   10770
   ScaleWidth      =   14850
   StartUpPosition =   2  'CenterScreen
   Begin VB.PictureBox Picture1 
      Height          =   2295
      Left            =   0
      Picture         =   "Custom Build PC Quotation.frx":0000
      ScaleHeight     =   2235
      ScaleWidth      =   14835
      TabIndex        =   79
      Top             =   0
      Width           =   14895
   End
   Begin VB.CommandButton cmdPrint 
      Caption         =   "Quick Print"
      Height          =   615
      Left            =   1080
      TabIndex        =   78
      Top             =   8640
      Width           =   1335
   End
   Begin VB.CommandButton cmdresetform 
      Caption         =   "Reset Form"
      Height          =   615
      Left            =   1080
      TabIndex        =   77
      Top             =   7920
      Width           =   975
   End
   Begin VB.Frame Extras 
      Caption         =   "Extras"
      Height          =   4215
      Left            =   11280
      TabIndex        =   63
      Top             =   5400
      Width           =   2655
      Begin VB.TextBox txtCostExtras 
         Height          =   375
         Left            =   120
         TabIndex        =   75
         Top             =   3720
         Width           =   2175
      End
      Begin VB.CheckBox chkExtra 
         Caption         =   "Norton Internet Security - £25.96"
         Height          =   375
         Index           =   10
         Left            =   120
         TabIndex        =   74
         Top             =   3240
         Width           =   2175
      End
      Begin VB.CheckBox chkExtra 
         Caption         =   "Pack of 25 DVD's - £3.40"
         Height          =   255
         Index           =   9
         Left            =   120
         TabIndex        =   73
         Top             =   3000
         Width           =   2175
      End
      Begin VB.CheckBox chkExtra 
         Caption         =   "Pack of 25 CD's - £3.10"
         Height          =   255
         Index           =   8
         Left            =   120
         TabIndex        =   72
         Top             =   2760
         Width           =   2175
      End
      Begin VB.CheckBox chkExtra 
         Caption         =   "17"" Monitor - £108.96"
         Height          =   255
         Index           =   7
         Left            =   120
         TabIndex        =   71
         Top             =   2520
         Width           =   2175
      End
      Begin VB.CheckBox chkExtra 
         Caption         =   "19"" GNR Widescreen Monitor - £129.99"
         Height          =   375
         Index           =   6
         Left            =   120
         TabIndex        =   70
         Top             =   2160
         Width           =   2175
      End
      Begin VB.CheckBox chkExtra 
         Caption         =   "2.1 Speakers - £15.98"
         Height          =   255
         Index           =   5
         Left            =   120
         TabIndex        =   69
         Top             =   1920
         Width           =   2175
      End
      Begin VB.CheckBox chkExtra 
         Caption         =   "Wired Keyboard and Mouse - £3.99"
         Height          =   375
         Index           =   4
         Left            =   120
         TabIndex        =   68
         Top             =   1560
         Width           =   2175
      End
      Begin VB.CheckBox chkExtra 
         Caption         =   "Microsoft Wireless Keyboard and Mouse - £20.99"
         Height          =   615
         Index           =   3
         Left            =   120
         TabIndex        =   67
         Top             =   960
         Width           =   2415
      End
      Begin VB.CheckBox chkExtra 
         Caption         =   "Floppy Disk - £4.99"
         Height          =   255
         Index           =   2
         Left            =   120
         TabIndex        =   66
         Top             =   720
         Width           =   2175
      End
      Begin VB.CheckBox chkExtra 
         Caption         =   "LG DVD-Rom - £10.03"
         Height          =   255
         Index           =   1
         Left            =   120
         TabIndex        =   65
         Top             =   480
         Width           =   2175
      End
      Begin VB.CheckBox chkExtra 
         Caption         =   "LG DVD-Writer - £19.97"
         Height          =   255
         Index           =   0
         Left            =   120
         TabIndex        =   64
         Top             =   240
         Width           =   2175
      End
   End
   Begin MSComDlg.CommonDialog cdlFile 
      Left            =   15240
      Top             =   3360
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin MSComDlg.CommonDialog cdlPrint 
      Left            =   14880
      Top             =   3360
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.TextBox txtCustAddress 
      Height          =   1215
      Left            =   2040
      MultiLine       =   -1  'True
      TabIndex        =   33
      Top             =   3480
      Width           =   1695
   End
   Begin VB.TextBox txtCustName 
      Height          =   735
      Left            =   2040
      TabIndex        =   30
      Top             =   2520
      Width           =   1695
   End
   Begin VB.Frame Frame12 
      Caption         =   "Software O/S"
      Height          =   2415
      Left            =   7680
      TabIndex        =   23
      Top             =   8040
      Width           =   3495
      Begin VB.TextBox txtCostOS 
         Height          =   495
         Left            =   120
         TabIndex        =   61
         Top             =   1800
         Width           =   3255
      End
      Begin VB.OptionButton optSoftwareOS 
         Caption         =   "Windows Vista Ultimate - £124.22"
         Height          =   255
         Index           =   5
         Left            =   120
         TabIndex        =   29
         Top             =   1560
         Width           =   2895
      End
      Begin VB.OptionButton optSoftwareOS 
         Caption         =   "Windows Vista Business - £89.36"
         Height          =   255
         Index           =   4
         Left            =   120
         TabIndex        =   28
         Top             =   1320
         Width           =   2895
      End
      Begin VB.OptionButton optSoftwareOS 
         Caption         =   "Windows Vista Home Premium - £70.75"
         Height          =   255
         Index           =   3
         Left            =   120
         TabIndex        =   27
         Top             =   1080
         Width           =   3255
      End
      Begin VB.OptionButton optSoftwareOS 
         Caption         =   "Windows Vista Basic 32/64Bit - £55.77"
         Height          =   375
         Index           =   2
         Left            =   120
         TabIndex        =   26
         Top             =   720
         Width           =   3135
      End
      Begin VB.OptionButton optSoftwareOS 
         Caption         =   "Windows XP - Professional - £94.96"
         Height          =   255
         Index           =   1
         Left            =   120
         TabIndex        =   25
         Top             =   480
         Width           =   2895
      End
      Begin VB.OptionButton optSoftwareOS 
         Caption         =   "Windows XP - Home - £58.64"
         Height          =   255
         Index           =   0
         Left            =   120
         TabIndex        =   24
         Top             =   240
         Width           =   2895
      End
   End
   Begin VB.Frame Frame11 
      Caption         =   "Hard Drives - Sata 2"
      Height          =   2415
      Left            =   960
      TabIndex        =   20
      Top             =   5280
      Width           =   2775
      Begin VB.TextBox txtCostHarddrive 
         Height          =   375
         Left            =   120
         TabIndex        =   62
         Top             =   1680
         Width           =   2535
      End
      Begin VB.OptionButton optharddrive 
         Caption         =   "Maxtor 320GB 16MB - £66.00"
         Height          =   255
         Index           =   4
         Left            =   120
         TabIndex        =   42
         Top             =   1320
         Width           =   2535
      End
      Begin VB.OptionButton optharddrive 
         Caption         =   "Maxtor 320GB 8MB - £53.31"
         Height          =   255
         Index           =   3
         Left            =   120
         TabIndex        =   41
         Top             =   1080
         Width           =   2415
      End
      Begin VB.OptionButton optharddrive 
         Caption         =   "Maxtor 250GB 8MB - £42.56"
         Height          =   255
         Index           =   2
         Left            =   120
         TabIndex        =   40
         Top             =   840
         Width           =   2415
      End
      Begin VB.OptionButton optharddrive 
         Caption         =   "Maxtor 160GB 2MB - £36.81"
         Height          =   255
         Index           =   1
         Left            =   120
         TabIndex        =   22
         Top             =   600
         Width           =   2415
      End
      Begin VB.OptionButton optharddrive 
         Caption         =   "Maxtor 80GB 2MB - £26.78"
         Height          =   255
         Index           =   0
         Left            =   120
         TabIndex        =   21
         Top             =   360
         Width           =   2295
      End
   End
   Begin VB.Frame Frame10 
      Caption         =   "Graphics Card"
      Height          =   2655
      Left            =   11280
      TabIndex        =   18
      Top             =   2400
      Width           =   2415
      Begin VB.TextBox txtCostGraphics 
         Height          =   495
         Left            =   240
         TabIndex        =   58
         Top             =   2040
         Width           =   1695
      End
      Begin VB.OptionButton optgraphicscard 
         Caption         =   "Connect 3d Radeon X1900GTO 256MB GDDR3 DVI-I PCI-Express - £81.95"
         Height          =   855
         Index           =   1
         Left            =   120
         TabIndex        =   56
         Top             =   1080
         Width           =   1815
      End
      Begin VB.OptionButton optgraphicscard 
         Caption         =   "Connect 3d Radeon X600PRO 128MB DDR PCI-Express - £29.99"
         Height          =   735
         Index           =   0
         Left            =   120
         TabIndex        =   19
         Top             =   240
         Width           =   2055
      End
   End
   Begin VB.Frame Frame8 
      Caption         =   "Memory - DDR2"
      Height          =   1695
      Left            =   7680
      TabIndex        =   16
      Top             =   6240
      Width           =   3255
      Begin VB.TextBox txtCostMemory 
         Height          =   285
         Left            =   240
         TabIndex        =   60
         Top             =   1320
         Width           =   2895
      End
      Begin VB.OptionButton optmemory 
         Caption         =   "Kingston Valueram 2GB 667MHZ 2 X 1GB"
         Height          =   375
         Index           =   2
         Left            =   240
         TabIndex        =   39
         Top             =   840
         Width           =   2535
      End
      Begin VB.OptionButton optmemory 
         Caption         =   "Corsair 1GB 667MHz-PC2-5300"
         Height          =   255
         Index           =   1
         Left            =   240
         TabIndex        =   38
         Top             =   600
         Width           =   2535
      End
      Begin VB.OptionButton optmemory 
         Caption         =   "Kingston 512Mb 667MHz-PC2-5300"
         Height          =   255
         Index           =   0
         Left            =   240
         TabIndex        =   17
         Top             =   360
         Width           =   2895
      End
   End
   Begin VB.Frame Frame9 
      Caption         =   "Quote"
      Height          =   1095
      Left            =   2400
      TabIndex        =   13
      Top             =   9480
      Width           =   1215
      Begin VB.TextBox txtQuote 
         Height          =   735
         Left            =   120
         TabIndex        =   15
         Text            =   "£0.00"
         Top             =   240
         Width           =   975
      End
   End
   Begin VB.Frame Date 
      Caption         =   "Date"
      Height          =   1095
      Left            =   720
      TabIndex        =   12
      Top             =   9480
      Width           =   1575
      Begin VB.TextBox txtdate 
         Height          =   735
         Left            =   120
         TabIndex        =   14
         Top             =   240
         Width           =   1335
      End
   End
   Begin VB.Frame Frame5 
      Caption         =   "Motherboard"
      Height          =   3735
      Left            =   7680
      TabIndex        =   3
      Top             =   2400
      Width           =   3135
      Begin VB.TextBox txtCostMotherboard 
         Height          =   375
         Left            =   240
         TabIndex        =   59
         Top             =   3240
         Width           =   2775
      End
      Begin VB.Frame Frame7 
         Caption         =   "Socket AM2 940"
         Height          =   1455
         Left            =   120
         TabIndex        =   10
         Top             =   1680
         Width           =   2895
         Begin VB.OptionButton optmotherboardAMD 
            Caption         =   "Asus M2N-VM DH - £64.99"
            Height          =   255
            Index           =   3
            Left            =   120
            TabIndex        =   36
            Top             =   1080
            Width           =   2655
         End
         Begin VB.OptionButton optmotherboardAMD 
            Caption         =   "Asus MSNPV-MX - £46.79"
            Height          =   255
            Index           =   2
            Left            =   120
            TabIndex        =   35
            Top             =   840
            Width           =   2655
         End
         Begin VB.OptionButton optmotherboardAMD 
            Caption         =   "MSI K9N4 - £35.48"
            Height          =   255
            Index           =   1
            Left            =   120
            TabIndex        =   34
            Top             =   600
            Width           =   2655
         End
         Begin VB.OptionButton optmotherboardAMD 
            Caption         =   "MSI K9VGM-V K8M890 - £32.95"
            Height          =   255
            Index           =   0
            Left            =   120
            TabIndex        =   11
            Top             =   360
            Width           =   2655
         End
      End
      Begin VB.Frame Frame6 
         Caption         =   "LGA 775"
         Height          =   1095
         Left            =   120
         TabIndex        =   7
         Top             =   480
         Width           =   2895
         Begin VB.OptionButton optmotherboardlga775 
            Caption         =   "Asus P5W DH Deluxe - £126.38"
            Height          =   255
            Index           =   2
            Left            =   120
            TabIndex        =   37
            Top             =   720
            Width           =   2655
         End
         Begin VB.OptionButton optmotherboardlga775 
            Caption         =   "MSI P965 - 64.70"
            Height          =   255
            Index           =   1
            Left            =   120
            TabIndex        =   9
            Top             =   480
            Width           =   2535
         End
         Begin VB.OptionButton optmotherboardlga775 
            Caption         =   "Asus P5B - £74.16"
            Height          =   255
            Index           =   0
            Left            =   120
            TabIndex        =   8
            Top             =   240
            Width           =   2535
         End
      End
   End
   Begin VB.Frame Frame2 
      Caption         =   "Processor"
      Height          =   5895
      Left            =   3960
      TabIndex        =   0
      Top             =   2400
      Width           =   3615
      Begin VB.CommandButton cmdresetprocessors 
         Caption         =   "Reset"
         Height          =   615
         Left            =   120
         TabIndex        =   76
         Top             =   5160
         Width           =   615
      End
      Begin VB.TextBox txtCostProcessor 
         Height          =   615
         Left            =   840
         TabIndex        =   57
         Top             =   5160
         Width           =   2535
      End
      Begin VB.Frame Frame4 
         Caption         =   "AMD (Socket 940)"
         Height          =   3255
         Left            =   120
         TabIndex        =   2
         Top             =   1800
         Width           =   3375
         Begin VB.OptionButton optprocessorAMD 
            Caption         =   "X2 5200+ (2.6ghz) 1mb - £141.36"
            Height          =   195
            Index           =   10
            Left            =   120
            TabIndex        =   55
            Top             =   3000
            Width           =   3135
         End
         Begin VB.OptionButton optprocessorAMD 
            Caption         =   "X2 5000+ (2.6ghz) 1mb - £137.21"
            Height          =   195
            Index           =   9
            Left            =   120
            TabIndex        =   54
            Top             =   2760
            Width           =   3135
         End
         Begin VB.OptionButton optprocessorAMD 
            Caption         =   "X2 4800+ (2.5ghz) 1mb - £136.65"
            Height          =   195
            Index           =   8
            Left            =   120
            TabIndex        =   53
            Top             =   2520
            Width           =   3135
         End
         Begin VB.OptionButton optprocessorAMD 
            Caption         =   "X2 4600+ (2.4ghz) 512kb - £114.86"
            Height          =   195
            Index           =   7
            Left            =   120
            TabIndex        =   52
            Top             =   2280
            Width           =   3135
         End
         Begin VB.OptionButton optprocessorAMD 
            Caption         =   "X2 4400+ (2.3ghz) 1mb - £105.70"
            Height          =   195
            Index           =   6
            Left            =   120
            TabIndex        =   51
            Top             =   2040
            Width           =   3135
         End
         Begin VB.OptionButton optprocessorAMD 
            Caption         =   "X2 4200+ (2.2ghz) 512kb - £91.20"
            Height          =   195
            Index           =   5
            Left            =   120
            TabIndex        =   50
            Top             =   1800
            Width           =   3135
         End
         Begin VB.OptionButton optprocessorAMD 
            Caption         =   "X2 3800+ (2.0ghz) 1mb - £70.33"
            Height          =   195
            Index           =   4
            Left            =   120
            TabIndex        =   49
            Top             =   1560
            Width           =   3135
         End
         Begin VB.OptionButton optprocessorAMD 
            Caption         =   "Athlon 64 3800+ 512kb - £58.12"
            Height          =   195
            Index           =   3
            Left            =   120
            TabIndex        =   48
            Top             =   960
            Width           =   2655
         End
         Begin VB.OptionButton optprocessorAMD 
            Caption         =   "Athlon 64 3500+ 512kb - £54.84"
            Height          =   195
            Index           =   2
            Left            =   120
            TabIndex        =   47
            Top             =   720
            Width           =   3015
         End
         Begin VB.OptionButton optprocessorAMD 
            Caption         =   "Athlon 64 3200+ 512kb - £46.35"
            Height          =   195
            Index           =   1
            Left            =   120
            TabIndex        =   46
            Top             =   480
            Width           =   2895
         End
         Begin VB.OptionButton optprocessorAMD 
            Caption         =   "Athlon 64 3000+ 512kb - £43.96"
            Height          =   195
            Index           =   0
            Left            =   120
            TabIndex        =   5
            Top             =   240
            Width           =   3135
         End
         Begin VB.Label Label3 
            Caption         =   "AM2 - Athlon 64"
            Height          =   255
            Left            =   120
            TabIndex        =   6
            Top             =   1200
            Width           =   1455
         End
      End
      Begin VB.Frame Frame3 
         Caption         =   "Intel Core 2 Duo(Socket LGA 775)"
         Height          =   1455
         Left            =   120
         TabIndex        =   1
         Top             =   240
         Width           =   3375
         Begin VB.OptionButton optprocessorintel 
            Caption         =   "E6400 (2.13ghz) 2mb - £138.66"
            Height          =   255
            Index           =   1
            Left            =   120
            TabIndex        =   45
            Top             =   480
            Width           =   2895
         End
         Begin VB.OptionButton optprocessorintel 
            Caption         =   "E6700 (2.67ghz) 4mb - £336.38"
            Height          =   255
            Index           =   3
            Left            =   120
            TabIndex        =   44
            Top             =   960
            Width           =   3135
         End
         Begin VB.OptionButton optprocessorintel 
            Caption         =   "E6600 (2.4ghz)   4mb - £188.13"
            Height          =   255
            Index           =   2
            Left            =   120
            TabIndex        =   43
            Top             =   720
            Width           =   3135
         End
         Begin VB.OptionButton optprocessorintel 
            Caption         =   "E6300 (1.86ghz) 2mb - £110.75"
            Height          =   255
            Index           =   0
            Left            =   120
            TabIndex        =   4
            Top             =   240
            Value           =   -1  'True
            Width           =   3135
         End
      End
   End
   Begin VB.Label Label1 
      Caption         =   "Address"
      Height          =   735
      Left            =   720
      TabIndex        =   32
      Top             =   3480
      Width           =   1215
   End
   Begin VB.Label Name 
      Caption         =   "Name:"
      Height          =   735
      Left            =   720
      TabIndex        =   31
      Top             =   2520
      Width           =   1215
   End
   Begin VB.Menu mnuFile 
      Caption         =   "File"
      Begin VB.Menu mnuLoad 
         Caption         =   "Load"
      End
      Begin VB.Menu mnuSave 
         Caption         =   "Save"
      End
      Begin VB.Menu mnuExit 
         Caption         =   "Exit"
      End
   End
   Begin VB.Menu mnuPrint 
      Caption         =   "Print"
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public thisdir As String

Private Sub chkExtra_Click(Index As Integer)
Dim sngPrice As Single
    If chkExtra(0).Value = 1 Then sngPrice = sngPrice + "19.97"
    If chkExtra(1).Value = 1 Then sngPrice = sngPrice + "10.03"
    If chkExtra(2).Value = 1 Then sngPrice = sngPrice + "4.99"
    If chkExtra(3).Value = 1 Then sngPrice = sngPrice + "20.99"
    If chkExtra(4).Value = 1 Then sngPrice = sngPrice + "3.99"
    If chkExtra(5).Value = 1 Then sngPrice = sngPrice + "15.98"
    If chkExtra(6).Value = 1 Then sngPrice = sngPrice + "129.99"
    If chkExtra(7).Value = 1 Then sngPrice = sngPrice + "108.96"
    If chkExtra(8).Value = 1 Then sngPrice = sngPrice + "3.10"
    If chkExtra(9).Value = 1 Then sngPrice = sngPrice + "3.40"
    If chkExtra(10).Value = 1 Then sngPrice = sngPrice + "25.96"
txtCostExtras.Text = sngPrice
Call AddUp
End Sub



Private Sub cmdPrint_Click()
cmdPrint.Visible = False
Form1.PrintForm

cmdPrint.Visible = True
End Sub

Private Sub Form_Load()
thisdir = CurDir + "\Custom Built PC Quotes\"
txtdate.Text = Format(Now, "dd/mm/yyyy")

End Sub

Private Sub mnuExit_Click()
End
End Sub

Private Sub mnuLoad_Click()
On Error GoTo trapError
cdlFile.ShowOpen
Open cdlFile.FileName For Input As #1
    Line Input #1, temp: txtdate = temp
    Line Input #1, temp: txtCustName = temp
    
    txtCustAddress = ""
    temp = ""
    Do
        If temp <> "" Then txtCustAddress = txtCustAddress + temp + vbCrLf
        Line Input #1, temp
        
    Loop Until temp = "AddressEnd"
        
    Input #1, tempopt: optprocessorintel(tempopt).Value = True
    Input #1, tempopt: optprocessorAMD(tempopt).Value = True
    Input #1, tempopt: optmotherboardlga775(tempopt).Value = True
    Input #1, tempopt: optmotherboardAMD(tempopt).Value = True
    Input #1, tempopt: optmemory(tempopt).Value = True
    Input #1, tempopt: optharddrive(tempopt).Value = True
    Input #1, tempopt: optgraphicscard(tempopt).Value = True
    Input #1, tempopt: optSoftwareOS(tempopt).Value = True

For Counter = 0 To 10
Input #1, tempopt: chkExtra(Counter) = tempopt
Next
Close #1
Exit Sub
trapError:
End Sub

Private Sub mnuPrint_Click()
cdlPrint.ShowPrinter
On Error GoTo trapError

Printer.FontName = "Times New Roman"
Printer.FontBold = True
Printer.FontSize = 18
Printer.Print "JamTechSystems Custom Built PC Quotation"
Printer.Print
Printer.FontName = "Courier New"
Printer.FontBold = False
Printer.FontSize = 12
Printer.Print "Date"; Tab; txtdate
Printer.Print "Name"; Tab; txtCustName
Printer.Print "Address";
Printer.Print Tab; txtCustAddress
Printer.Print

Printer.Print "Processor - ";
    If optprocessorintel(0).Value = True Then Printer.Print "E6300 (1.86ghz) 2mb"
    If optprocessorintel(1).Value = True Then Printer.Print "E6400 (2.13ghz) 2mb"
    If optprocessorintel(2).Value = True Then Printer.Print "E6600 (2.4ghz) 4mb"
    If optprocessorintel(3).Value = True Then Printer.Print "E6700 (2.67ghz) 4mb"
    
    If optprocessorAMD(0).Value = True Then Printer.Print "Athlon 64 3000+ 512kb"
    If optprocessorAMD(1).Value = True Then Printer.Print "Athlon 64 3200+ 512kb"
    If optprocessorAMD(2).Value = True Then Printer.Print "Athlon 64 3500+ 512kb"
    If optprocessorAMD(3).Value = True Then Printer.Print "Athlon 64 3800+ 512kb"
    If optprocessorAMD(4).Value = True Then Printer.Print "X2 3800+ (2.0ghz) 1mb"
    If optprocessorAMD(5).Value = True Then Printer.Print "X2 4200+ (2.2ghz) 512kb"
    If optprocessorAMD(6).Value = True Then Printer.Print "X2 4400+ (2.3ghz) 1mb"
    If optprocessorAMD(7).Value = True Then Printer.Print "X2 4600+ (2.4ghz) 512kb"
    If optprocessorAMD(8).Value = True Then Printer.Print "X2 4800+ (2.5ghz) 1mb"
    If optprocessorAMD(9).Value = True Then Printer.Print "X2 5000+ (2.6ghz) 1mb"
    If optprocessorAMD(10).Value = True Then Printer.Print "X2 5200+ (2.6ghz) 1mb"
    Printer.Print Tab; Format(txtCostProcessor, "currency")
    
Printer.Print "Motherboard - ";
    If optmotherboardlga775(0).Value = True Then Printer.Print "Asus P5B"
    If optmotherboardlga775(1).Value = True Then Printer.Print "MSI P965"
    If optmotherboardlga775(2).Value = True Then Printer.Print "Asus P5W DH Deluxe"
    
    If optmotherboardAMD(0).Value = True Then Printer.Print "MSI K9VGM-V K8M890"
    If optmotherboardAMD(1).Value = True Then Printer.Print "MSI K9N4"
    If optmotherboardAMD(2).Value = True Then Printer.Print "Asus MSNPV-MX"
    If optmotherboardAMD(3).Value = True Then Printer.Print "Asus M2N-VM DH"
    Printer.Print Tab; Format(txtCostMotherboard, "currency")

Printer.Print "Memory DDR2 - "
    If optmemory(0).Value = True Then Printer.Print "Kingston 512Mb 667MHz-PC2-5300"
    If optmemory(1).Value = True Then Printer.Print "Corsair 1GB 667MHz-PC2-5300"
    If optmemory(2).Value = True Then Printer.Print "Kingston Valueram 2GB 667MHZ 2 X 1GB"
    Printer.Print Tab; Format(txtCostMemory, "currency")
    
Printer.Print "Hard Drive (Sata 2) - "
    If optharddrive(0).Value = True Then Printer.Print "Maxtor 80GB 2MB"
    If optharddrive(1).Value = True Then Printer.Print "Maxtor 160GB 2MB"
    If optharddrive(2).Value = True Then Printer.Print "Maxtor 250GB 8MB"
    If optharddrive(3).Value = True Then Printer.Print "Maxtor 320GB 8MB"
    If optharddrive(4).Value = True Then Printer.Print "Maxtor 320GB 16MB"
    Printer.Print Tab; Format(txtCostHarddrive, "currency")
    
Printer.Print "Graphics Card - "
    If optgraphicscard(0).Value = True Then Printer.Print "Connect 3d Radeon X600PRO 128MB DDR PCI-Express"
    If optgraphicscard(1).Value = True Then Printer.Print "Connect 3d Radeon X1900GTO 256MB GDDR3 DVI-I PCI-Express"
    Printer.Print Tab; Format(txtCostGraphics, "currency")
    
    
Printer.Print "Operating System - "
    If optSoftwareOS(0).Value = True Then Printer.Print "Windows XP - Home"
    If optSoftwareOS(1).Value = True Then Printer.Print "Windows XP - Professional"
    If optSoftwareOS(2).Value = True Then Printer.Print "Windows Vista 32/64 Bit - Basic"
    If optSoftwareOS(3).Value = True Then Printer.Print "Windows Vista 32/64 Bit - Home Premium"
    If optSoftwareOS(4).Value = True Then Printer.Print "Windows Vista 32/64 Bit - Business"
    If optSoftwareOS(5).Value = True Then Printer.Print "Windows Vista 32/64 Bit - Ultimate"
    Printer.Print Tab; Format(txtCostOS, "currency")
    
Printer.Print "Extras - "
    If chkExtra(0).Value = 1 Then Printer.Print "LG DVD-Writer - £19.97"
    If chkExtra(1).Value = 1 Then Printer.Print "LG DVD-Rom - £10.03"
    If chkExtra(2).Value = 1 Then Printer.Print "Floppy Disk - £4.99"
    If chkExtra(3).Value = 1 Then Printer.Print "Microsoft Wireless Keyboard and Mouse - £20.99"
    If chkExtra(4).Value = 1 Then Printer.Print "Wired Mouse and Keyboard - £3.99"
    If chkExtra(5).Value = 1 Then Printer.Print "2.1 Speakers - £15.98"
    If chkExtra(6).Value = 1 Then Printer.Print "19'' Monitor - £129.99"
    If chkExtra(7).Value = 1 Then Printer.Print "17'' Monitor - £108.96"
    If chkExtra(8).Value = 1 Then Printer.Print "Pack of 25 CD's - £3.10"
    If chkExtra(9).Value = 1 Then Printer.Print "Pack of 25 DVD-R's - £3.40"
    If chkExtra(10).Value = 1 Then Printer.Print "Norton Internet Security - £25.96"
    
    Printer.Print
    Printer.Print "Extra's Total"; Tab; Format(txtCostExtras, "currency")
    
    
Printer.Print
Printer.Print "Total"; Tab; Format(txtQuote, "currency")

Printer.EndDoc
Exit Sub

trapError:

End Sub


Private Sub mnuSave_Click()
Open (Quotes + txtCustName + ".customPC") For Output As #1
    Print #1, txtdate
    Print #1, txtCustName
    Print #1, txtCustAddress
    Print #1, "AddressEnd"
    
    For Counter = 0 To 3
    If optprocessorintel(Counter) = True Then Print #1, Counter
    Next
    For Counter = 0 To 10
    If optprocessorAMD(Counter) = True Then Print #1, Counter
    Next
    For Counter = 0 To 2
    If optmotherboardlga775(Counter) = True Then Print #1, Counter
    Next
    For Counter = 0 To 3
    If optmotherboardAMD(Counter) = True Then Print #1, Counter
    Next
    For Counter = 0 To 2
    If optmemory(Counter) = True Then Print #1, Counter
    Next
    For Counter = 0 To 4
    If optharddrive(Counter) = True Then Print #1, Counter
    Next
    For Counter = 0 To 1
    If optgraphicscard(Counter) = True Then Print #1, Counter
    Next
    For Counter = 0 To 5
    If optSoftwareOS(Counter) = True Then Print #1, Counter
    Next
    For Counter = 0 To 10
    Print #1, chkExtra(Counter)
    Next
    Close #1
    End Sub

Private Sub optprocessorintel_Click(Index As Integer)
Select Case Index
Case 0: txtCostProcessor = "110.75"
    Me.optmotherboardAMD(0).Enabled = False
    Me.optmotherboardAMD(1).Enabled = False
    Me.optmotherboardAMD(2).Enabled = False
    Me.optmotherboardAMD(3).Enabled = False
    Me.optmotherboardlga775(0).Enabled = True
    Me.optmotherboardlga775(1).Enabled = True
    Me.optmotherboardlga775(2).Enabled = True
    Me.optprocessorAMD(0).Enabled = False
    Me.optprocessorAMD(1).Enabled = False
    Me.optprocessorAMD(2).Enabled = False
    Me.optprocessorAMD(3).Enabled = False
    Me.optprocessorAMD(4).Enabled = False
    Me.optprocessorAMD(5).Enabled = False
    Me.optprocessorAMD(6).Enabled = False
    Me.optprocessorAMD(7).Enabled = False
    Me.optprocessorAMD(8).Enabled = False
    Me.optprocessorAMD(9).Enabled = False
    Me.optprocessorAMD(10).Enabled = False

    Case 1: txtCostProcessor = "138.66"
    Me.optmotherboardAMD(0).Enabled = False
    Me.optmotherboardAMD(1).Enabled = False
    Me.optmotherboardAMD(2).Enabled = False
    Me.optmotherboardAMD(3).Enabled = False
    Me.optmotherboardlga775(0).Enabled = True
    Me.optmotherboardlga775(1).Enabled = True
    Me.optmotherboardlga775(2).Enabled = True
    Me.optprocessorAMD(0).Enabled = False
    Me.optprocessorAMD(1).Enabled = False
    Me.optprocessorAMD(2).Enabled = False
    Me.optprocessorAMD(3).Enabled = False
    Me.optprocessorAMD(4).Enabled = False
    Me.optprocessorAMD(5).Enabled = False
    Me.optprocessorAMD(6).Enabled = False
    Me.optprocessorAMD(7).Enabled = False
    Me.optprocessorAMD(8).Enabled = False
    Me.optprocessorAMD(9).Enabled = False
    Me.optprocessorAMD(10).Enabled = False

Case 2: txtCostProcessor = "188.13"
    Me.optmotherboardAMD(0).Enabled = False
    Me.optmotherboardAMD(1).Enabled = False
    Me.optmotherboardAMD(2).Enabled = False
    Me.optmotherboardAMD(3).Enabled = False
    Me.optmotherboardlga775(0).Enabled = True
    Me.optmotherboardlga775(1).Enabled = True
    Me.optmotherboardlga775(2).Enabled = True
    Me.optprocessorAMD(0).Enabled = False
    Me.optprocessorAMD(1).Enabled = False
    Me.optprocessorAMD(2).Enabled = False
    Me.optprocessorAMD(3).Enabled = False
    Me.optprocessorAMD(4).Enabled = False
    Me.optprocessorAMD(5).Enabled = False
    Me.optprocessorAMD(6).Enabled = False
    Me.optprocessorAMD(7).Enabled = False
    Me.optprocessorAMD(8).Enabled = False
    Me.optprocessorAMD(9).Enabled = False
    Me.optprocessorAMD(10).Enabled = False
Case 3: txtCostProcessor = "336.38"
    Me.optmotherboardAMD(0).Enabled = False
    Me.optmotherboardAMD(1).Enabled = False
    Me.optmotherboardAMD(2).Enabled = False
    Me.optmotherboardAMD(3).Enabled = False
    Me.optmotherboardlga775(0).Enabled = True
    Me.optmotherboardlga775(1).Enabled = True
    Me.optmotherboardlga775(2).Enabled = True
    Me.optprocessorAMD(0).Enabled = False
    Me.optprocessorAMD(1).Enabled = False
    Me.optprocessorAMD(2).Enabled = False
    Me.optprocessorAMD(3).Enabled = False
    Me.optprocessorAMD(4).Enabled = False
    Me.optprocessorAMD(5).Enabled = False
    Me.optprocessorAMD(6).Enabled = False
    Me.optprocessorAMD(7).Enabled = False
    Me.optprocessorAMD(8).Enabled = False
    Me.optprocessorAMD(9).Enabled = False
    Me.optprocessorAMD(10).Enabled = False

End Select
Call AddUp
End Sub

    
Private Sub optprocessorAMD_Click(Index As Integer)
Select Case Index
Case 0: txtCostProcessor = "43.96"
    Me.optmotherboardAMD(0).Enabled = True
    Me.optmotherboardAMD(1).Enabled = True
    Me.optmotherboardAMD(2).Enabled = True
    Me.optmotherboardAMD(3).Enabled = True
    Me.optmotherboardlga775(0).Enabled = False
    Me.optmotherboardlga775(1).Enabled = False
    Me.optmotherboardlga775(2).Enabled = False
    Me.optprocessorintel(0).Enabled = False
    Me.optprocessorintel(1).Enabled = False
    Me.optprocessorintel(2).Enabled = False
    Me.optprocessorintel(3).Enabled = False
    
Case 1: txtCostProcessor = "46.35"
    Me.optmotherboardAMD(0).Enabled = True
    Me.optmotherboardAMD(1).Enabled = True
    Me.optmotherboardAMD(2).Enabled = True
    Me.optmotherboardAMD(3).Enabled = True
    Me.optmotherboardlga775(0).Enabled = False
    Me.optmotherboardlga775(1).Enabled = False
    Me.optmotherboardlga775(2).Enabled = False
    Me.optprocessorintel(0).Enabled = False
    Me.optprocessorintel(1).Enabled = False
    Me.optprocessorintel(2).Enabled = False
    Me.optprocessorintel(3).Enabled = False

Case 2: txtCostProcessor = "54.84"
    Me.optmotherboardAMD(0).Enabled = True
    Me.optmotherboardAMD(1).Enabled = True
    Me.optmotherboardAMD(2).Enabled = True
    Me.optmotherboardAMD(3).Enabled = True
    Me.optmotherboardlga775(0).Enabled = False
    Me.optmotherboardlga775(1).Enabled = False
    Me.optmotherboardlga775(2).Enabled = False
    Me.optprocessorintel(0).Enabled = False
    Me.optprocessorintel(1).Enabled = False
    Me.optprocessorintel(2).Enabled = False
    Me.optprocessorintel(3).Enabled = False

Case 3: txtCostProcessor = "58.12"
    Me.optmotherboardAMD(0).Enabled = True
    Me.optmotherboardAMD(1).Enabled = True
    Me.optmotherboardAMD(2).Enabled = True
    Me.optmotherboardAMD(3).Enabled = True
    Me.optmotherboardlga775(0).Enabled = False
    Me.optmotherboardlga775(1).Enabled = False
    Me.optmotherboardlga775(2).Enabled = False
    Me.optprocessorintel(0).Enabled = False
    Me.optprocessorintel(1).Enabled = False
    Me.optprocessorintel(2).Enabled = False
    Me.optprocessorintel(3).Enabled = False

Case 4: txtCostProcessor = "70.33"
    Me.optmotherboardAMD(0).Enabled = True
    Me.optmotherboardAMD(1).Enabled = True
    Me.optmotherboardAMD(2).Enabled = True
    Me.optmotherboardAMD(3).Enabled = True
    Me.optmotherboardlga775(0).Enabled = False
    Me.optmotherboardlga775(1).Enabled = False
    Me.optmotherboardlga775(2).Enabled = False
    Me.optprocessorintel(0).Enabled = False
    Me.optprocessorintel(1).Enabled = False
    Me.optprocessorintel(2).Enabled = False
    Me.optprocessorintel(3).Enabled = False

Case 5: txtCostProcessor = "91.20"
    Me.optmotherboardAMD(0).Enabled = True
    Me.optmotherboardAMD(1).Enabled = True
    Me.optmotherboardAMD(2).Enabled = True
    Me.optmotherboardAMD(3).Enabled = True
    Me.optmotherboardlga775(0).Enabled = False
    Me.optmotherboardlga775(1).Enabled = False
    Me.optmotherboardlga775(2).Enabled = False
    Me.optprocessorintel(0).Enabled = False
    Me.optprocessorintel(1).Enabled = False
    Me.optprocessorintel(2).Enabled = False
    Me.optprocessorintel(3).Enabled = False

Case 6: txtCostProcessor = "105.70"
    Me.optmotherboardAMD(0).Enabled = True
    Me.optmotherboardAMD(1).Enabled = True
    Me.optmotherboardAMD(2).Enabled = True
    Me.optmotherboardAMD(3).Enabled = True
    Me.optmotherboardlga775(0).Enabled = False
    Me.optmotherboardlga775(1).Enabled = False
    Me.optmotherboardlga775(2).Enabled = False
    Me.optprocessorintel(0).Enabled = False
    Me.optprocessorintel(1).Enabled = False
    Me.optprocessorintel(2).Enabled = False
    Me.optprocessorintel(3).Enabled = False

Case 7: txtCostProcessor = "114.86"
    Me.optmotherboardAMD(0).Enabled = True
    Me.optmotherboardAMD(1).Enabled = True
    Me.optmotherboardAMD(2).Enabled = True
    Me.optmotherboardAMD(3).Enabled = True
    Me.optmotherboardlga775(0).Enabled = False
    Me.optmotherboardlga775(1).Enabled = False
    Me.optmotherboardlga775(2).Enabled = False
    Me.optprocessorintel(0).Enabled = False
    Me.optprocessorintel(1).Enabled = False
    Me.optprocessorintel(2).Enabled = False
    Me.optprocessorintel(3).Enabled = False

Case 8: txtCostProcessor = "136.65"
    Me.optmotherboardAMD(0).Enabled = True
    Me.optmotherboardAMD(1).Enabled = True
    Me.optmotherboardAMD(2).Enabled = True
    Me.optmotherboardAMD(3).Enabled = True
    Me.optmotherboardlga775(0).Enabled = False
    Me.optmotherboardlga775(1).Enabled = False
    Me.optmotherboardlga775(2).Enabled = False
    Me.optprocessorintel(0).Enabled = False
    Me.optprocessorintel(1).Enabled = False
    Me.optprocessorintel(2).Enabled = False
    Me.optprocessorintel(3).Enabled = False

Case 9: txtCostProcessor = "137.21"
    Me.optmotherboardAMD(0).Enabled = True
    Me.optmotherboardAMD(1).Enabled = True
    Me.optmotherboardAMD(2).Enabled = True
    Me.optmotherboardAMD(3).Enabled = True
    Me.optmotherboardlga775(0).Enabled = False
    Me.optmotherboardlga775(1).Enabled = False
    Me.optmotherboardlga775(2).Enabled = False
    Me.optprocessorintel(0).Enabled = False
    Me.optprocessorintel(1).Enabled = False
    Me.optprocessorintel(2).Enabled = False
    Me.optprocessorintel(3).Enabled = False

Case 10: txtCostProcessor = "141.36"
    Me.optmotherboardAMD(0).Enabled = True
    Me.optmotherboardAMD(1).Enabled = True
    Me.optmotherboardAMD(2).Enabled = True
    Me.optmotherboardAMD(3).Enabled = True
    Me.optmotherboardlga775(0).Enabled = False
    Me.optmotherboardlga775(1).Enabled = False
    Me.optmotherboardlga775(2).Enabled = False
    Me.optprocessorintel(0).Enabled = False
    Me.optprocessorintel(1).Enabled = False
    Me.optprocessorintel(2).Enabled = False
    Me.optprocessorintel(3).Enabled = False

End Select
Call AddUp
End Sub
Private Sub cmdresetprocessors_Click()
Me.optprocessorintel(0).Enabled = True
Me.optprocessorintel(1).Enabled = True
Me.optprocessorintel(2).Enabled = True
Me.optprocessorintel(3).Enabled = True
Me.optprocessorAMD(0).Enabled = True
Me.optprocessorAMD(1).Enabled = True
Me.optprocessorAMD(2).Enabled = True
Me.optprocessorAMD(3).Enabled = True
Me.optprocessorAMD(4).Enabled = True
Me.optprocessorAMD(5).Enabled = True
Me.optprocessorAMD(6).Enabled = True
Me.optprocessorAMD(7).Enabled = True
Me.optprocessorAMD(8).Enabled = True
Me.optprocessorAMD(9).Enabled = True
Me.optprocessorAMD(10).Enabled = True
Me.optprocessorintel(0).Value = False
Me.optprocessorintel(1).Value = False
Me.optprocessorintel(2).Value = False
Me.optprocessorintel(3).Value = False
Me.optprocessorAMD(0).Value = False
Me.optprocessorAMD(1).Value = False
Me.optprocessorAMD(2).Value = False
Me.optprocessorAMD(3).Value = False
Me.optprocessorAMD(4).Value = False
Me.optprocessorAMD(5).Value = False
Me.optprocessorAMD(6).Value = False
Me.optprocessorAMD(7).Value = False
Me.optprocessorAMD(8).Value = False
Me.optprocessorAMD(9).Value = False
Me.optprocessorAMD(10).Value = False

Me.txtCostProcessor.Text = ""


End Sub

 
Private Sub optmotherboardlga775_Click(Index As Integer)
Select Case Index
Case 0: txtCostMotherboard = "74.16"
Case 1: txtCostMotherboard = "64.70"
Case 2: txtCostMotherboard = "126.38"

End Select
Call AddUp
End Sub
Private Sub optmotherboardAMD_Click(Index As Integer)
Select Case Index
Case 0: txtCostMotherboard = "32.95"
Case 1: txtCostMotherboard = "35.48"
Case 2: txtCostMotherboard = "46.79"
Case 3: txtCostMotherboard = "64.99"
End Select
Call AddUp
End Sub


Private Sub optMemory_Click(Index As Integer)

Select Case Index
Case 0: txtCostMemory = "27.15"
Case 1: txtCostMemory = "43.02"
Case 2: txtCostMemory = "89.99"
End Select
Call AddUp
End Sub
Private Sub optHarddrive_Click(Index As Integer)
Select Case Index
Case 0: txtCostHarddrive = "26.78"
Case 1: txtCostHarddrive = "36.81"
Case 2: txtCostHarddrive = "42.56"
Case 3: txtCostHarddrive = "53.31"
Case 4: txtCostHarddrive = "66.00"
End Select
Call AddUp
End Sub

Private Sub optGraphicscard_Click(Index As Integer)
Select Case Index
Case 0: txtCostGraphics = "29.99"
Case 1: txtCostGraphics = "81.95"
End Select
Call AddUp
End Sub

Private Sub optSoftwareOS_Click(Index As Integer)
Select Case Index
Case 0: txtCostOS = "58.64"
Case 1: txtCostOS = "94.96"
Case 2: txtCostOS = "55.77"
Case 3: txtCostOS = "70.75"
Case 4: txtCostOS = "89.36"
Case 5: txtCostOS = "124.22"
End Select
Call AddUp
End Sub



Private Sub AddUp()

txtQuote = Val(txtCostProcessor) + Val(txtCostMotherboard) + Val(txtCostMemory) + Val(txtCostHarddrive) + Val(txtCostGraphics) + Val(txtCostOS)

txtQuote = Format(Val(txtQuote) + Val(txtCostExtras.Text), "Currency")

End Sub
Private Sub cmdresetform_Click()

Dim testmsg As Integer
resetmsg = MsgBox("Do you want to reset the form?", vbYesNo, "Warning! Are you sure?")
If resetmsg = vbYes Then



'reset processor
Me.optprocessorintel(0).Enabled = True
Me.optprocessorintel(1).Enabled = True
Me.optprocessorintel(2).Enabled = True
Me.optprocessorintel(3).Enabled = True
Me.optprocessorAMD(0).Enabled = True
Me.optprocessorAMD(1).Enabled = True
Me.optprocessorAMD(2).Enabled = True
Me.optprocessorAMD(3).Enabled = True
Me.optprocessorAMD(4).Enabled = True
Me.optprocessorAMD(5).Enabled = True
Me.optprocessorAMD(6).Enabled = True
Me.optprocessorAMD(7).Enabled = True
Me.optprocessorAMD(8).Enabled = True
Me.optprocessorAMD(9).Enabled = True
Me.optprocessorAMD(10).Enabled = True
Me.optprocessorintel(0).Value = False
Me.optprocessorintel(1).Value = False
Me.optprocessorintel(2).Value = False
Me.optprocessorintel(3).Value = False
Me.optprocessorAMD(0).Value = False
Me.optprocessorAMD(1).Value = False
Me.optprocessorAMD(2).Value = False
Me.optprocessorAMD(3).Value = False
Me.optprocessorAMD(4).Value = False
Me.optprocessorAMD(5).Value = False
Me.optprocessorAMD(6).Value = False
Me.optprocessorAMD(7).Value = False
Me.optprocessorAMD(8).Value = False
Me.optprocessorAMD(9).Value = False
Me.optprocessorAMD(10).Value = False

Me.txtCostProcessor.Text = ""

'reset motherboards
Me.optmotherboardlga775(0).Enabled = True
Me.optmotherboardlga775(1).Enabled = True
Me.optmotherboardlga775(2).Enabled = True
Me.optmotherboardAMD(0).Enabled = True
Me.optmotherboardAMD(1).Enabled = True
Me.optmotherboardAMD(2).Enabled = True
Me.optmotherboardAMD(3).Enabled = True
Me.optmotherboardlga775(0).Value = False
Me.optmotherboardlga775(1).Value = False
Me.optmotherboardlga775(2).Value = False
Me.optmotherboardAMD(0).Value = False
Me.optmotherboardAMD(1).Value = False
Me.optmotherboardAMD(2).Value = False
Me.optmotherboardAMD(3).Value = False
Me.txtCostMotherboard.Text = ""

'reset memory
Me.optmemory(0).Value = False
Me.optmemory(1).Value = False
Me.optmemory(2).Value = False
Me.txtCostMemory.Text = ""

'reset OS
Me.optSoftwareOS(0).Value = False
Me.optSoftwareOS(1).Value = False
Me.optSoftwareOS(2).Value = False
Me.optSoftwareOS(3).Value = False
Me.optSoftwareOS(4).Value = False
Me.optSoftwareOS(5).Value = False
Me.txtCostOS.Text = ""

'reset graphics card
Me.optgraphicscard(0).Value = False
Me.optgraphicscard(1).Value = False
Me.txtCostGraphics.Text = ""

'reset hard drives
Me.optharddrive(0).Value = False
Me.optharddrive(1).Value = False
Me.optharddrive(2).Value = False
Me.optharddrive(3).Value = False
Me.optharddrive(4).Value = False
Me.txtCostHarddrive.Text = ""

'reset extras
Me.chkExtra(0).Value = False
Me.chkExtra(1).Value = False
Me.chkExtra(2).Value = False
Me.chkExtra(3).Value = False
Me.chkExtra(4).Value = False
Me.chkExtra(5).Value = False
Me.chkExtra(6).Value = False
Me.chkExtra(7).Value = False
Me.chkExtra(8).Value = False
Me.chkExtra(9).Value = False
Me.chkExtra(10).Value = False
Me.txtCostExtras.Text = ""

Me.txtCustName.Text = ""
Me.txtCustAddress.Text = ""

Me.txtQuote.Text = ""
Else

End If
End Sub


