private void fnfilebrowse()
        {
            bool blnrppext;
            Application.DoEvents();
            this.Cursor = Cursors.WaitCursor;
            OpenFileDialog fileBrowser = new OpenFileDialog();
            fileBrowser.Title = "Select mdb File";
            fileBrowser.Filter = "mdb File(*.mdb, *.accdb)|*.mdb;*.accdb";
            fileBrowser.DefaultExt = "*.mdb";
            fileBrowser.ShowDialog(this);
            if ((fileBrowser.FileName.Length == 0) && txtMdbFilePath.Text == "")
            {
                MessageBox.Show("Select .mdb or .accdb File","Error: File Selection");
            }
            //else if (Global.selUpdateId != 0 && Global.SelUpdate == true)
            //{

            //}
            if ((fileBrowser.FileName.Length > 0) && (fileBrowser.CheckFileExists))
            {
                txtMdbFilePath.Text = fileBrowser.FileName;
                string rppfilepath = txtMdbFilePath.Text;
                if (Path.GetExtension(rppfilepath).ToString().ToUpper() != ".MDB" && Path.GetExtension(rppfilepath).ToString().ToUpper() != ".ACCDB")
                {
                    blnrppext = false;
                    if (blnrppext == false)
                    {
                        MessageBox.Show("Select Correct MDB File", "Error: File Selection", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    }
                    else
                    {
                    }

                }
                else
                {
                    Global.mdbFilePath = txtMdbFilePath.Text;
                    frmMdbTableColumnsSelect frm = new frmMdbTableColumnsSelect();
                    frm.ShowDialog();
                }
            }
            Application.DoEvents();
            this.Cursor = Cursors.Default;
        }
 private void btnUpdSet_Click(object sender, EventArgs e)
 {
     Global.mdbFilePath = txtMdbFilePath.Text;
     frmMdbTableColumnsSelect frm = new frmMdbTableColumnsSelect();
     frm.ShowDialog();
 }