We help IT Professionals succeed at work.
Get Started

clearbeforefill ?

MBHEY131
MBHEY131 asked
on
422 Views
Last Modified: 2015-03-10
I don't understand this behavior in the code:

I'm filling various Combo Boxes  on a form: ""BELOW IS AN EXAMPLE WHEN THE COMBO BOX gets focus:

       frmShopHandMain.txtOPTimeLine_01.Visible = True
        'TODO: This line of code loads data into the 'Database1DataSet1.LaborOps' table. You can move, or remove it, as needed.
        frmShopHandMain.Database1DataSet11.EnforceConstraints = False
        frmShopHandMain.LbrOpsTblAdptr1.Fill(frmShopHandMain.Database1DataSet11.LaborOps)

Open in new window


After selecting a button on the same form "The following code gets called"
       Me.RO_InvTableAdapter1.ClearBeforeFill = False
        Me.RO_InvTableAdapter1.FillByVerifyRO_Exists(DbseRO_InvDataSet.RO_Inv, RoNum_Ln1)

Open in new window


when I set the CLEARBEFOREFILL method to "False" - EVERYTHING IS PRETTY MUCH OK for now, but
when I set the CLEARBEFOREFILL method to "True" - all of the above mentioned COMBOBOXES GET cleared out ???

the only COMMON DENOMINATOR here that I know of is the DATABASE THE THE SAME.
THE ADAPTERS, DATASETS are all different and I don't know why the form is being affected this way.???

Can anyone help me??
Comment
Watch Question
Retired Senior Systems Analyst/Programmer
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE