G
Guest
I've tried figuring this out for a while with no luck.
I have a form called "frm_Credits", this is based on the "tbl_Credits"
table.
This form has a subform called "frm_Credits_Contin" based on the query
"qry_Credits_frm".
The query "qry_Credits_frm" is based on the "tbl_Credits" table as well.
The "frm_Credits" is where the user can type in the credits as they come in,
one at a time.
The "frm_Credits_Contin" shows all the credits that have the same AcctNo and
are within the same period as the one shown on the "frm_Credits".
My problem is: On the "frm_Credits" form there is a checkbox for the field
"Credits". When this is checked off it gives the "Rate" the opposite sign.
(If negative, changed to positive, etc) This works fine.
But the record in the list (on the subform) that corresponds to the record
on the main form does not change. On the "AfterUpdate" property of the
"Credits" checkbox, I tried to requery the main form, and I tried to requery
the subform. The matching record in the subform does not change.
This is what I tried:
[Forms]![frm_Credits]![frm_Credits_Contin].Requery
Or
Me![frm_Credits_Contin].Form.Requery
Or
Me![frm_Credits_Contin].Form.Refresh
Or
Me.Requery
None of them have worked. Please tell me what I am doing wrong. I searched
this forum and the web in general with no luck.
Your response would be much appreciated.
Thanks,
Rachel
I have a form called "frm_Credits", this is based on the "tbl_Credits"
table.
This form has a subform called "frm_Credits_Contin" based on the query
"qry_Credits_frm".
The query "qry_Credits_frm" is based on the "tbl_Credits" table as well.
The "frm_Credits" is where the user can type in the credits as they come in,
one at a time.
The "frm_Credits_Contin" shows all the credits that have the same AcctNo and
are within the same period as the one shown on the "frm_Credits".
My problem is: On the "frm_Credits" form there is a checkbox for the field
"Credits". When this is checked off it gives the "Rate" the opposite sign.
(If negative, changed to positive, etc) This works fine.
But the record in the list (on the subform) that corresponds to the record
on the main form does not change. On the "AfterUpdate" property of the
"Credits" checkbox, I tried to requery the main form, and I tried to requery
the subform. The matching record in the subform does not change.
This is what I tried:
[Forms]![frm_Credits]![frm_Credits_Contin].Requery
Or
Me![frm_Credits_Contin].Form.Requery
Or
Me![frm_Credits_Contin].Form.Refresh
Or
Me.Requery
None of them have worked. Please tell me what I am doing wrong. I searched
this forum and the web in general with no luck.
Your response would be much appreciated.
Thanks,
Rachel