Mainform/subform/subform problem

  • Thread starter Thread starter EManning
  • Start date Start date
E

EManning

Using A2K. I've got a mainform with a subform (subfrm1). There's a
subform within that subform (subfrm2).

When an amount is entered on the mainform, I want that amount to
appear on subfrm1 and subfrm2. It's appearing on subfrm1 OK but not
on subfrm2. Here's my syntax:

Me.subfrmBatchFunds.Form!subfrmBatchObjectCodes.Form!txtAmount =
Me.txtCheckAmount

Debug shows that the amount is getting stored in the control on
subfrm2 but it's not displaying on the form.

What am I doing wrong? Thanks for any help or advice.
 
When you say "Debug shows that the amount is getting stored in the control
on subfrm2 but it's not displaying on the form." it leads me to think that
perhaps you have a field named txtAmount but that the control is named
something else. Check the name property of your control (under the Other
tab).
 
The control on subfrm2 is called txtAmount and it's ControlSource is Amount.

If I tried changing txtAmount to Amount in my code, I get the same
results...debug says the control has the value...the form doesn't display it
though.



Sandra Daigle said:
When you say "Debug shows that the amount is getting stored in the control
on subfrm2 but it's not displaying on the form." it leads me to think that
perhaps you have a field named txtAmount but that the control is named
something else. Check the name property of your control (under the Other
tab).

--
Sandra Daigle [Microsoft Access MVP]
Please post all replies to the newsgroup.

Using A2K. I've got a mainform with a subform (subfrm1). There's a
subform within that subform (subfrm2).

When an amount is entered on the mainform, I want that amount to
appear on subfrm1 and subfrm2. It's appearing on subfrm1 OK but not
on subfrm2. Here's my syntax:

Me.subfrmBatchFunds.Form!subfrmBatchObjectCodes.Form!txtAmount =
Me.txtCheckAmount

Debug shows that the amount is getting stored in the control on
subfrm2 but it's not displaying on the form.

What am I doing wrong? Thanks for any help or advice.
 
Back
Top