Ok, I have made a report that contains unbound controls(take note unbounded, since I generate the info from queries).
I have a sample function like the following that moves the controls down as I add content.
Now I'm receiving a lot of errors.
1st error was "The Control or Subform Control is too large for this Location"
so I tried to add a code like this.
Since basically the movement of the controls are equal.
Then I get the following error:
"Microsoft Office Access can't find the field 'Detail' referred to in your expression."
Can anyone help me with this? I've seen some that explains I need to normalize the DB but that's for bounded controls? Correct me if i'm wrong.
Btw the function above is called inside Detail_Format event.
Also, my canShrink and canGrow property is set to yes.
I have a sample function like the following that moves the controls down as I add content.
Code:
Private Function MoveTotals()
Me!txtTotalDeductionTitle.Top = Me!txtTotalDeductionTitle.Top + moveValue
Me!txtTotalDeductions.Top = Me!txtTotalDeductions.Top + moveValue
Me!txtSubTotal.Top = Me!txtSubTotal.Top + moveValue
Me!txtSubTotalTitle.Top = Me!txtSubTotalTitle.Top + moveValue
Me!txtVatTitle.Top = Me!txtVatTitle.Top + moveValue
Me!txtVatTotal.Top = Me!txtVatTotal.Top + moveValue
Me!txtGrandTotalTitle.Top = Me!txtGrandTotalTitle.Top + moveValue
Me!txtGrandTotal.Top = Me!txtGrandTotal.Top + moveValue
End Function
Now I'm receiving a lot of errors.
1st error was "The Control or Subform Control is too large for this Location"
so I tried to add a code like this.
Code:
Private Function MoveTotals()
[COLOR="Red"]Me!Detail.Height = Me!Detail.Height + moveValue[/COLOR]
Me!txtTotalDeductionTitle.Top = Me!txtTotalDeductionTitle.Top + moveValue
Me!txtTotalDeductions.Top = Me!txtTotalDeductions.Top + moveValue
Me!txtSubTotal.Top = Me!txtSubTotal.Top + moveValue
Me!txtSubTotalTitle.Top = Me!txtSubTotalTitle.Top + moveValue
Me!txtVatTitle.Top = Me!txtVatTitle.Top + moveValue
Me!txtVatTotal.Top = Me!txtVatTotal.Top + moveValue
Me!txtGrandTotalTitle.Top = Me!txtGrandTotalTitle.Top + moveValue
Me!txtGrandTotal.Top = Me!txtGrandTotal.Top + moveValue
End Function
Since basically the movement of the controls are equal.
Then I get the following error:
"Microsoft Office Access can't find the field 'Detail' referred to in your expression."
Can anyone help me with this? I've seen some that explains I need to normalize the DB but that's for bounded controls? Correct me if i'm wrong.
Btw the function above is called inside Detail_Format event.
Also, my canShrink and canGrow property is set to yes.
Last edited: