Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with long string in an SQL statement
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00582595
Message ID:
00582624
Views:
24
This message has been marked as the solution to the initial question of the thread.
Hi Chris,

Don't use the fields at all in the statement... You can't have the equivalent of a blank string for Logical or Date/Datetime datatypes... you coiuld try

!ISNULL(fieldname) but I'm not sure that would work. Your best bet is to not reference the field at all.

If you want to return a list of all records with a description field matching the word "Fox" but for any date just remove the "AND Date =" section. If you're doing this you may be better off building the entire where clause rather than each section of it... if you see what I mean.

Cheers,

Ben
Ben Sugden

"Remember to enjoy hunting - and that means relishing the search for the product that has never been advertised or placed handily at the front of the shop; Life begins on the uppermost shelf, avoid guide books and top 10's like the plague." - Ramsey Dukes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform