Tupacmoche
Registered User.
- Local time
- Today, 05:13
- Joined
- Apr 28, 2008
- Messages
- 291
Hi Form Masters,
I have a label that is not refreshing properly. Here is the code:
Me.lblRecCnt.Caption = _
"Record " & Me.CurrentRecord & " of " & Me.Recordset.RecordCount
When, I use navigation buttons to move forward or backwards it updates correctly. Here is where the combo box comes in. It has All, Complete, and Incomplete. But, when I select all it dose not show [Record 1 of 114] but shows [Record 1 of 101], when I select Complete it correctly shows [Record 1 of 5] when I select Incomplete it shows [Record 1 of 101]. There are exactly 114 rows in the table. I have to move to the last record in order to show the correct number of rows. What is wrong? How can I fix this?
Also, I set the default value of the Combo box to 0 (Incomplete) but when the form launches even though 'Incomplete' is selected in the Combo box the form has no rows in it until, I explicitly click the combo box and select Incomplete. Why doesn't it load the Incomplete rows when the form opens? I even put this code into the forms on load event:
CboIsComplete.DefaultValue = 0
Me.Recalc
Me.Refresh
I have a label that is not refreshing properly. Here is the code:
Me.lblRecCnt.Caption = _
"Record " & Me.CurrentRecord & " of " & Me.Recordset.RecordCount
When, I use navigation buttons to move forward or backwards it updates correctly. Here is where the combo box comes in. It has All, Complete, and Incomplete. But, when I select all it dose not show [Record 1 of 114] but shows [Record 1 of 101], when I select Complete it correctly shows [Record 1 of 5] when I select Incomplete it shows [Record 1 of 101]. There are exactly 114 rows in the table. I have to move to the last record in order to show the correct number of rows. What is wrong? How can I fix this?
Also, I set the default value of the Combo box to 0 (Incomplete) but when the form launches even though 'Incomplete' is selected in the Combo box the form has no rows in it until, I explicitly click the combo box and select Incomplete. Why doesn't it load the Incomplete rows when the form opens? I even put this code into the forms on load event:
CboIsComplete.DefaultValue = 0
Me.Recalc
Me.Refresh