Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One Record or All Records in same view.
Message
 
 
To
20/08/2008 18:29:37
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01340612
Message ID:
01340623
Views:
10
>I have several view definitions where I'd like to return either a single record, or a group of them(all in some cases), so I can run the same reports and actions against the one/many without creating two versions of everything. Right now, this is accomplished with a WHERE clause of IIF(EMPTY(?vp_PrimaryKey), .T., Table.PrimaryKey = ?vp_PrimaryKey) . The IIF and EMPTY aren't optimizable - is there a better way to do this that is?

Is Table.PrimaryKey a character or numeric?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform