SELECT statement with WHERE clause

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ebo2006
    New Member
    • Oct 2006
    • 30

    #1

    SELECT statement with WHERE clause

    There are two combo boxes in my form: CORP and CLASS. The WHERE clause of the SELECT statement in the Row Source Property of the CLASS combo box works only every time I start the form. It does not change the list options when I select another ID from CORP combo box. Why is this so?

    Here is my select statement

    Code:
    SELECT [tblTYPE].[tech], [tblTYPE].[corp] FROM Courses WHERE [tblTYPE].[corp]=form.ID ORDER BY [tblTYPE].[tech];
    tblTYPE is the table for CLASS.

    Thank you in advance.
  • ebo2006
    New Member
    • Oct 2006
    • 30

    #2
    Originally posted by ebo2006
    There are two combo boxes in my form: CORP and CLASS. The WHERE clause of the SELECT statement in the Row Source Property of the CLASS combo box works only every time I start the form. It does not change the list options when I select another ID from CORP combo box. Why is this so?

    Here is my select statement

    Code:
    SELECT [tblTYPE].[tech], [tblTYPE].[corp] FROM Courses WHERE [tblTYPE].[corp]=form.ID ORDER BY [tblTYPE].[tech];
    tblTYPE is the table for CLASS.

    Thank you in advance.
    Hey guys, you need not reply . I got it. Thanks anyway.

    Comment

    Working...