Kayleigh
Member
- Local time
- Today, 12:56
- Joined
- Sep 24, 2020
- Messages
- 709
Hi
I'm revisiting some forms I started building last year (see here which I've successfully implemented thanks to @MajP !)
Now my problem is that I would like to display a subform on the main form to summarise the details for each related student. I've considered the options and thought it would be best to write a crosstab query with the students along the top and the details/categories as the rows. So I've written several suitable crosstabs and used a union query to join.
My trouble started when I implemented on the form - I can't put the student names as titles because it changes for each record. So I would like to dynamically display the titles. I've used this code in the past successfully but now I keep getting an object variable not set error - I think at the part where its iterating through recordset (between done 3 and 4). It is on the subform in attached DB (not yet linked to the main form but the main form will need to be opened to work).
If anyone can shed light on this issue because I really don't know what is causing this error.
Thank you
I'm revisiting some forms I started building last year (see here which I've successfully implemented thanks to @MajP !)
Now my problem is that I would like to display a subform on the main form to summarise the details for each related student. I've considered the options and thought it would be best to write a crosstab query with the students along the top and the details/categories as the rows. So I've written several suitable crosstabs and used a union query to join.
My trouble started when I implemented on the form - I can't put the student names as titles because it changes for each record. So I would like to dynamically display the titles. I've used this code in the past successfully but now I keep getting an object variable not set error - I think at the part where its iterating through recordset (between done 3 and 4). It is on the subform in attached DB (not yet linked to the main form but the main form will need to be opened to work).
If anyone can shed light on this issue because I really don't know what is causing this error.
Thank you