Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting records from a continuous form

Status
Not open for further replies.

JORAM

Technical User
May 29, 2000
4
GB
I have a search form that displays the results in a continuous form.  I would like to be able to select records from this form that will then be displayed in a report.  Any ideas?
 
One thing that I would do is to place a control on the search form that was bound to the record's Unique ID (whatever you have decided to use as a RecordID ).&nbsp;&nbsp;SInce its a search form, I would disable and lock all of the controls on the form except the ID control.&nbsp;&nbsp;You can place a command button on the form that will open up a form or report to the value you have highlighted(By the way, if you allow record selectors to be enabled you will not have to enable any of your controls on the form and the ID control can be invisible).<br><br>I assume that you have a query as the recordsource of the report.&nbsp;&nbsp;In the ID field's criteria row I would place: Forms![MySearchForm]![txtID].<br><br><br>When the report is run, the query understands that the ID field on that form is needed to run.&nbsp;&nbsp;Only those records with that ID will be selected.<br><br>Hope that helps.
 
Or you could just ad a field of Yes/No type, only visible in that window. The user can then select what records he wants to see, and they are easy to select via SQL. Just remember to clear the field by an update query when closing report.
 
I have created the Yes/no field on the form which allows me to select the records I want but when I run the update query only some of the records are cleared, although the database appears to know the records are cleared as it gives an error message.&nbsp;&nbsp;I have tried compacting the database, but it hasn't helped.&nbsp;&nbsp;I can't think of anything else??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top