I have a main form with a tab control. Each tab has 1 subform. On the first tab control the subform doesn't seem to refresh correctly, when I navigate records on the main form. If there are no records, the form sections are set to can grow/can shrink = yes. There is a text box control in the footer that calculates a nice label of current records with the following code:
This textbox shows up towards the top of the subform object, when there are no records, which is fine. What isn't good, is when it shows the text box twice. Once with 1 of 1 and once with 0, with some controls 1/2 painted on the form, and all over the place. If I minimize access and then restore it, the form refreshes the view appropriately. I have tried everything, but it does not seem to be working. I have tried requery, repaint and refresh. the requery seems to work, but it gives a record in the subform where there isn't one.
This form is linked with parent/child links, but the subform record source is a union query. Do I need to do something extra because it is a union query? The form is read-only.
I appreciate any help.
misscrf
It is never too late to become what you could have been ~ George Eliot
Code:
If Me.NewRecord Then
Me!txtCurrRec = "New xxx Record"
Else
Me!txtCurrRec = CStr(Me.CurrentRecord) & " of " & _
CStr(Me.RecordsetClone.RecordCount) & " xxx Records"
This textbox shows up towards the top of the subform object, when there are no records, which is fine. What isn't good, is when it shows the text box twice. Once with 1 of 1 and once with 0, with some controls 1/2 painted on the form, and all over the place. If I minimize access and then restore it, the form refreshes the view appropriately. I have tried everything, but it does not seem to be working. I have tried requery, repaint and refresh. the requery seems to work, but it gives a record in the subform where there isn't one.
This form is linked with parent/child links, but the subform record source is a union query. Do I need to do something extra because it is a union query? The form is read-only.
I appreciate any help.
misscrf
It is never too late to become what you could have been ~ George Eliot