How do get an InfoPath query form to return multiple records?

B

bbsoftware

I have created an InfoPath form connected to an SQL database. Part of the
form allows the user to query the database. The queries are intended to
return multiple records, however the form only displays one record. How do I
set up the form to return multiple records from a query? I have tried
creating a repeating section and copying the form display areas into it, but
it didn't work.
 
P

Paul Webster

bbsoftware said:
I have created an InfoPath form connected to an SQL database. Part of the
form allows the user to query the database. The queries are intended to
return multiple records, however the form only displays one record. How do I
set up the form to return multiple records from a query? I have tried
creating a repeating section and copying the form display areas into it, but
it didn't work.

Make sure that you are binding the data returned to a repeating control
otherwise only the first record will be displayed.
 
B

bbsoftware

Thanks for replying so quickly. I tried it again and it worked, it did
return more than the one record. I seem to be having trouble with some of
the sections with conditional formatting that I cut and past into my
repeating section. It says "data fields control cannot repeat here" Is
there a way to get my nested section to behave like it did outside the
section. I think it is that I bound the controls for the repeating section
to the whole table (there is only one table) and bound the controls for the
section with the conditional formatting to the same table. However I don't
see any other options, can I bind a section with multiple controls to one
field?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top