T
Tec92407
I have a main form and continous subform that I would like to display the
current record number and total number of records similar to the buit-in
navigation. The main form is based on a table containing purchase
requests(PRRequisition). The subform is based on a table containing Items to
be purchased (PRItems). The tables are related in a one to many fashion with
the PRRequisition Table containig the primary key and the PRItems containing
the foreign key..
I have a text box on the footer of each form containing
the following in the control source property:
On main form:
=[CurrentRecord] & " of " & Count([PRID]) & " of " & DCount(" [PRID]
","PRRequisition")
On subform:
=[CurrentRecord] & " of " & Count([ItemID]) & " of " & DCount(" [ItemID]
","PRItems")
The text box on the main form displays correctly but on the subform, the
displayed numbers don't seem to be accurate. The currect record always seems
to show one more record then there really is and doesn't follow the mouse
focus. The total doesn't display correctly, sometimes displays less than
there really is.
Have I coded this correctly? What am I missing?
current record number and total number of records similar to the buit-in
navigation. The main form is based on a table containing purchase
requests(PRRequisition). The subform is based on a table containing Items to
be purchased (PRItems). The tables are related in a one to many fashion with
the PRRequisition Table containig the primary key and the PRItems containing
the foreign key..
I have a text box on the footer of each form containing
the following in the control source property:
On main form:
=[CurrentRecord] & " of " & Count([PRID]) & " of " & DCount(" [PRID]
","PRRequisition")
On subform:
=[CurrentRecord] & " of " & Count([ItemID]) & " of " & DCount(" [ItemID]
","PRItems")
The text box on the main form displays correctly but on the subform, the
displayed numbers don't seem to be accurate. The currect record always seems
to show one more record then there really is and doesn't follow the mouse
focus. The total doesn't display correctly, sometimes displays less than
there really is.
Have I coded this correctly? What am I missing?