M
Mark A. Sam
I have an app which used SQL Server as the backend. Since changing over I
have had an annoying problem. On a particular form I have 4 subforms.
Products, Materials, Task, and Subcontractors.
Materials, Tasks, and Subcontractors are related to Products by an unbounf
textbox which is populated using the Current event of Products.
The issue is this. Each subform has a calulated control using the Sum()
funtion to total the cost. On the products form on some of the records, the
this textbox displays #Error and flickers as if something is processing or
calculation. This also slows the screen display.
Clicking on the subform stops this and causes the correct value to display.
I tried Me.Recalc in routines which change to new records. This corrects
the issue in come records, but not others. If I remove it, the other
records will be ok, but not the ones that were corrected.
I also tried requerying the subforms in the Current event of the main
record. This worked when I first tested it, but failed when I thought it
was solved and tested again. Sometimes a record will be ok for the products,
but then the total in the Materials subform will act up.
I have tried replacing controls as well as subforms, and also placing a new
textbox side by side of the existion textbox. I also tried different
agregate function to see if that was the problem, with no success. I can't
identity any condition to account for this behavior. It never occured on
these partuclar forms when I used an Access backend, but as soon as I
changed to SQL Server. With Access, I could always solve this issue by
replacing the control, but this doesn't seem to be corruption related.
Any help is appreciated.
God Bless,
Mark A.Sam
have had an annoying problem. On a particular form I have 4 subforms.
Products, Materials, Task, and Subcontractors.
Materials, Tasks, and Subcontractors are related to Products by an unbounf
textbox which is populated using the Current event of Products.
The issue is this. Each subform has a calulated control using the Sum()
funtion to total the cost. On the products form on some of the records, the
this textbox displays #Error and flickers as if something is processing or
calculation. This also slows the screen display.
Clicking on the subform stops this and causes the correct value to display.
I tried Me.Recalc in routines which change to new records. This corrects
the issue in come records, but not others. If I remove it, the other
records will be ok, but not the ones that were corrected.
I also tried requerying the subforms in the Current event of the main
record. This worked when I first tested it, but failed when I thought it
was solved and tested again. Sometimes a record will be ok for the products,
but then the total in the Materials subform will act up.
I have tried replacing controls as well as subforms, and also placing a new
textbox side by side of the existion textbox. I also tried different
agregate function to see if that was the problem, with no success. I can't
identity any condition to account for this behavior. It never occured on
these partuclar forms when I used an Access backend, but as soon as I
changed to SQL Server. With Access, I could always solve this issue by
replacing the control, but this doesn't seem to be corruption related.
Any help is appreciated.
God Bless,
Mark A.Sam