Hello all,
I had a form that was a split form type with the datasheet at the bottom ..
But I didn't like it as I couldn't get the main form to resize, it always filled the screen, I think because the datasheet was always wider than the screen.
So .. I redid the form, and used a subform instead.
The form itself is an output for an advanced search form that has multiple drop down selections, which then generates a SQL statement based on the users choices. This could generate 1 result or many.
The idea of the split form was that if there were many results, the user can scroll through them using up and down arrows I created on the main form, and then view / edit the detail in the top (form) part of the main form.
This all worked fine btw.
But now that I have redone this form using a subform at the bottom instead of the split form, the issue I have is that I don't know how to link the subform to the SQL output.
What I get now is if say I make selections in the search form that gives me 4 results, my output form tells me that I have 4 results, and the top (form) part shows the first record of the 4, but the subform will only show that 1 record, not all 4.
If I use the arrows to scroll down through the 4 records, they show in the subform, but that is not what I want.
I think it is do to with the main / child linking, but I don't know how to make it show all the results the SQL statement outputs.
Sorry if I have made it sound more confusing than it needs to be !!
Any ideas ?
Many thanks
Damob
I had a form that was a split form type with the datasheet at the bottom ..
But I didn't like it as I couldn't get the main form to resize, it always filled the screen, I think because the datasheet was always wider than the screen.
So .. I redid the form, and used a subform instead.
The form itself is an output for an advanced search form that has multiple drop down selections, which then generates a SQL statement based on the users choices. This could generate 1 result or many.
The idea of the split form was that if there were many results, the user can scroll through them using up and down arrows I created on the main form, and then view / edit the detail in the top (form) part of the main form.
This all worked fine btw.
But now that I have redone this form using a subform at the bottom instead of the split form, the issue I have is that I don't know how to link the subform to the SQL output.
What I get now is if say I make selections in the search form that gives me 4 results, my output form tells me that I have 4 results, and the top (form) part shows the first record of the 4, but the subform will only show that 1 record, not all 4.
If I use the arrows to scroll down through the 4 records, they show in the subform, but that is not what I want.
I think it is do to with the main / child linking, but I don't know how to make it show all the results the SQL statement outputs.
Sorry if I have made it sound more confusing than it needs to be !!
Any ideas ?
Many thanks
Damob