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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List box display based on check box selections

Status
Not open for further replies.

advantor

IS-IT--Management
Mar 30, 2009
1
US
I am just starting to learn access and about databases so please forgive any ignorance.
I have a very simple document database that I have created. That I am using to organize and track documents with. I want to be able to archive old revisions of documents and only want to display document that are not marked as archived. I have a field in my table that show if the document is archived or active. How can I make my list show only the active documents?
I have a control button that I wish to use to enable the viewing of the archived documents.

I then also want to be ablt to select a check box and have my list box view be filtered. I basically want to have it so when I select the check box that it filters the view by searching the decription field and only showing relevent items.

 
Base you list on a query. In the query you can use a WHERE clause to display the records you want.


Randy
 

Something like this, to show documents not marked as
'Archived.'

Code:
SELECT DocumentsTable.DocumentID, DocumentsTable.DocumentName, DocumentsTable.Archived
FROM DocumentsTable
WHERE (((DocumentsTable.Archived)=0));

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top