Has anyone had this problem before, my search on-line would suggest it not common but I'm sure you fine folk will be able to help.
This is the code I have used to change the recordsource on a subform. I have similar code to order the data using different queries.
However, when i run this bit of code the subform only displays one record.
Ok so first thought would be that the query used is causing the problem. However, the subform opens using the very same query as the one mentioned in the code above. Also opening the query itself shows all the records.
I can't for the life of me work out why it suddenly changes to a single record when using the code above.
Are there any property settings that I should be checking, any ideas on what could be causing this problem?
Any suggestions would be much appreciated.
This is the code I have used to change the recordsource on a subform. I have similar code to order the data using different queries.
Code:
Private Sub OrderByStartDate_Click() Forms.FRMClaims.ClaimsDisplaySubForm.Form.RecordSource = "QYClaimsByStartDate" End Sub
Ok so first thought would be that the query used is causing the problem. However, the subform opens using the very same query as the one mentioned in the code above. Also opening the query itself shows all the records.
I can't for the life of me work out why it suddenly changes to a single record when using the code above.
Are there any property settings that I should be checking, any ideas on what could be causing this problem?
Any suggestions would be much appreciated.
Comment