Only show Employees that are active?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pixiedust
    New Member
    • Apr 2008
    • 3

    Only show Employees that are active?

    I have an employees table with a field called Status. It is a text field: Active or Inactive. Without changing it to a yes/no; is there a way to code so that if it says Inactive, that employee will not show up in any dropdown combo boxes??

    Thanks!

    Pixie
  • missinglinq
    Recognized Expert Specialist
    • Nov 2006
    • 3533

    #2
    Create a query based on your table, and in the Criteria box for your Status field, enter "active" (with the double quotation marks) then create your combobox based on this query.

    Welcome to bytes!

    Linq ;0)>

    Comment

    • Trevor2007
      New Member
      • Feb 2008
      • 68

      #3
      I agree with MisingLinq

      Comment

      • NeoPa
        Recognized Expert Moderator MVP
        • Oct 2006
        • 32634

        #4
        Principally the same as Linq but I would use single-quotes within your SQL (See Quotes (') and Double-Quotes (") - Where and When to use them).
        [CODE=SQL]...
        WHERE [Status]='Inactive'
        ...[/CODE]

        Comment

        Working...