//        public accounts[] accts = new accts();
        //*************************************************************************************************************************************************//
        private void findCust_Click_1(object sender, EventArgs e)
        //*************************************************************************************************************************************************//
        {                   // Find the customer record
            if (accno != accountno.Text)
            {
                accno = accountno.Text;
            }
            ;
            if (accno == "")
            {
                return;
            }
            Cust = Search.FindCustInSortedList(Convert.ToInt32(accno));
            //Cust = Customer . GetCustomerAccount ( accno );
            if (Cust == null)
            {
                MessageBox.Show("Unable to find the Customer Record from LinkedList", "Database system ERROR");
                clear_Click_1(sender, e);                          // Clear the data form the screen
                return;
            }
            else
            {
                if (Cust.CustomerNumber.ToString( ) == accountno.Text)
                {
                    string curraccount = accountno.Text;
                    // set them all back to standard
                    //					actype1.Text= ""; actype2.Text = ""; actype3.Text = ""; actype4.Text = "";
                    actype1.Enabled     = false; actype2.Enabled = false; actype3.Enabled = false; actype4.Enabled = false;
                    actype1.ForeColor   = Color.Black; actype2.ForeColor = Color.Black; actype3.ForeColor = Color.Black; actype4.ForeColor = Color.Black;
                    actype1.BackColor   = Color.Gray; actype2.BackColor = Color.Gray; actype3.BackColor = Color.Gray; actype4.BackColor = Color.Gray;
                    checkBox1.Checked   = false; checkBox2.Checked = false; checkBox3.Checked = false; checkBox4.Checked = false;
                    checkBox1.Enabled   = false; checkBox2.Enabled = false; checkBox3.Enabled = false; checkBox4.Enabled = false;
                    checkBox2.ForeColor = Color.Red;
                    checkBox1.ForeColor = Color.Black; checkBox2.ForeColor = Color.Black; checkBox3.ForeColor = Color.Black; checkBox4.ForeColor = Color.Black;

                    textBox1.Text    = ""; textBox2.Text = ""; textBox3.Text = ""; textBox4.Text = "";
                    textBox1.Enabled = false; textBox2.Enabled = false; textBox3.Enabled = false; textBox4.Enabled = false;

                    SaveCustButton.Enabled = true;
                    clear.Enabled          = true;
                    Exit.Enabled           = true;
                    fname.Text             = Cust.FirstName;
                    lname.Text             = Cust.LastName;
                    day.Text    = Cust.DOB.Day.ToString( );
                    month.Text  = Cust.DOB.Month.ToString( );
                    year.Text   = Cust.DOB.Year.ToString( );
                    addr1.Text  = Cust.Address1;
                    addr1.Text  = Cust.Address1;
                    addr2.Text  = Cust.Address2;
                    town.Text   = Cust.Town;
                    county.Text = Cust.County;
                    pcode.Text  = Cust.PostCode;
                    pcode.Text  = Cust.PhoneNumber;;
                    mob.Text    = Cust.MobileNumber;
                    // first we need to grab a customer account to get the bank a/c file number from

                    // get the bank account for this customer*
                    //open the BankAccount
                    B = Search.FindBankObjectfromBankNo(Cust.accountnums[0].ToString( ));
                    AccountType.SelectedIndex = BankAccount.GetAccountType(B) - 1;
                    AccountBalance.Text       = B.Balance.ToString( );
                    Interest.Text             = B.InterestRate.ToString( );
                    OpenDate.Text             = B.DateOpened.ToShortDateString( );
                    // now sort out the multiple accounts problem
                    // got the matching account
                    currentselection = resetAccountIdentifiers(curraccount);
                    info.Text        = "Click the <UPDATE> button to save your changes";
                }
            }
            dirty = false;
        }