multiple results in one textbox

  • Thread starter enrico via AccessMonster.com
  • Start date
E

enrico via AccessMonster.com

i saw a sample in the net where the results in a query are shown in only one
textbox. for example, states in US. like you query states in the northwest
part. it will definitely return more than one result. when i open the form in
design view it uses a textbox and there's only one. how do you make one?
 
M

Mike Painter

enrico said:
i saw a sample in the net where the results in a query are shown in
only one textbox. for example, states in US. like you query states in
the northwest part. it will definitely return more than one result.
when i open the form in design view it uses a textbox and there's
only one. how do you make one?

You would have to write code to loop through the query and create a string
of the states.
If it *has* to be in the form "Alabama, California, Florida,... " that's
about the only way.

Far easier woud be to return the query in a subform or listbox.
 

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