angelleye Posted July 20, 2006 Posted July 20, 2006 I've got a Filemaker file that stores auction information for eBay. One field I have in there is called Sandbox is has a Yes, No drop down menu where you can select Yes or No and it holds that value. When I'm creating a recordset in my ASP scripts outside of FM, If I use the following: SELECT Auction_Number, Auction_ID FROM Auctions WHERE Auction_Status = 'Current' AND Sandbox = 'Yes' that works perfectly. It returns only the auction records where Sandbox has been set to Yes. Now I'm trying to return only non-sandbox records, so I use the following: SELECT Auction_Number, Auction_ID FROM Auctions WHERE Auction_Status = 'Current' AND Sandbox <> 'Yes' and I get 0 records returned!? Any information on why this happens would be greatly appreciated. Thanks!
fmsavey Posted July 20, 2006 Posted July 20, 2006 Are there records with "No" or are they null? If they are null use "... AND Sandbox is null" If there are records with "No" how about trying "... AND Sandbox != 'Yes'".
Wim Decorte Posted July 21, 2006 Posted July 21, 2006 wouldn't ... AND Sandbox = 'No' be a lot simpler :)
angelleye Posted July 29, 2006 Author Posted July 29, 2006 No, becuase they don't equal No unless they were set to Yes and then back to No. that doesn't happen. fmsavey's suggestion works great. thanks!
Recommended Posts
This topic is 7029 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now