Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / January 2005

Tip: Looking for answers? Try searching our database.

Retiring values from Combo Boxes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TXyota - 29 Jan 2005 16:41 GMT
I am currently using combo boxes based on a query that displays a different
column than the one that is bound to the table column.

I want to allow the users to “retire” a value in the look-up table, so I
added a column named Active with a data type of Yes/No.  I then added
criteria to the combo recordset to like “WHERE Active = YES”

This approach prevents using the retired values, but has an un-intended
consequence of displaying all existing records with a retired value as null.

Any suggestions on how to “retire” values from combo boxes while allowing
the users to still see the retired values in existing records?

Thanks
Eric Schittlipz - 29 Jan 2005 18:21 GMT
>I am currently using combo boxes based on a query that displays a different
> column than the one that is bound to the table column.
[quoted text clipped - 11 lines]
>
> Thanks

Use a second part of the where clause, eg tblOrders has a field SalesPerson
which is an ID (long integer) from the field tblStaff.StaffID, to show who
got the order.

... & " WHERE tblStaff.Active=True Or tblStaff.ID=" & Me!SalesPerson

But remember you will have to re-query the combobox each time you move to
another record (in the form's OnCurrent event).  Another option would be to
not allow edits directly - have a change button which pops up a list of
available values.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.