SQL statement for a Combobox

Beany

Registered User.
Local time
Today, 08:37
Joined
Nov 12, 2006
Messages
155
I have a combobox that has a list of sites.............

selecting a site brings up all the site details in a form..................

there are several fields within that form including a status field.

The status field includes live, cancelled, pending .

What i want to do is, if any site has a status of cancelled , it shouldnt list it in the combobox...............how do i do this?

ive tried the following SQL statement.......... it doesnt work


Code:
SELECT [tab_data].[site] FROM tab_data WHERE status != cancelled  ORDER BY [site];
 
<> "Cancelled" in the criteria field for Status in the underlying query
 
rich ---------> a star!
 

Users who are viewing this thread

Back
Top Bottom