Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FPD SELECT switching field values
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Title:
FPD SELECT switching field values
Environment versions
Visual FoxPro:
FoxPro Dos
Miscellaneous
Thread ID:
01394004
Message ID:
01394004
Views:
90
Hi all

I have already worked around this problem but I find it too typical not to mention here. I am SELECTing and UNIONing a few table something like below:
SELECT <otherfields>, tnprc.billdate, <morefields>, tnprc.stockdate, .....
   FROM a09tnprc tnprc ;
...
   INTO CURSOR asdfg
...
brow norm && all is well till here diff. dates for bill and stock dates

SELECT * ;
   FROM asdfg ;
UNION ALL ;
SELECT <otherfields>, tstjv.jvdate AS billdate, <morefields>, tstjv.jvdate AS stockdate, .....
   FROM a09tstjv tstjv ;
...
   INTO CURSOR asdfg
brow norm && when a09tstjv does not return records a09tnprc dates for billdate has become stock dates
In the case where there are no records present for a09tstjv, the records pull for a09tnprc will have the same dates for billdate and stockdate when in actual they are different.

Moving forward, for the time being I have {} AS stockdate and later I do an IIF and replace the empty stock dates with bill dates.

Any idea why this might be happening
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Next
Reply
Map
View

Click here to load this message in the networking platform