TIP: Click on subject to list as thread! ANSI
echo: paradox
to: LANCE LEONARD
from: PETER READER
date: 1995-05-18 18:35:00
subject: Adding procs to queries

---------------------------------------------------------------------------
LL>Peter,
LL>PR> Say I want a QBE field to contain
LL>PR> either the contents of table field A or table field B depending on the
LL>PR> contents of table field C.  In Access I could write
LL>PR> IIF(FieldC="Something",FieldA, FieldB).
LL>What you want is a CHANGETO query, probably more than one.  Consider the
LL>following:
LL>   TABLE | FieldA | FieldB | FieldC                     |
LL>         | _A     |        | Something, CHANGETO _A     |
LL>         |        | _B     | not Something, CHANGETO _B |
Thanks a lot -- I think I can make this work.  Glad to see you're still
monitoring this echo.  Maybe Version 6 will let us embed functions in a
query!
Still getting a lot of use out of Inside Paradox 5 for Windows. . .
Peter
peter.reader@nwcs.org
 * SLMR 2.1a * All hope abandon, ye who enter messages here.
--- WILDMAIL!/WC v4.12 
---------------
* Origin: NWCS Online (1:105/362.0)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.