Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL help
Message
 
 
To
01/05/2001 15:45:14
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00502017
Message ID:
00502212
Views:
18
>I'll give you a credit for it, even I had little hard time finding out why I kept getting errors, but it was the missing "ID" in the lnPersonID :)
>
>>>CASE m.pick='Name'
>>>*	=SEEK(ThisForm.List1.List(ThisForm.List1.ListIndex),"person","main")
>>       local lnPersonID
>>        lnPerson=int(val(ThisForm.List1.List(ThisForm.List1.ListIndex)))
>>        lnName=ThisForm.List1.List(ThisForm.List1.ListIndex,2)
>>>	SELECT lnName as PName, auth.organization, auth.authtype, auth.effective, auth.end ;
>>>		FROM auth ;
>>>		WHERE auth.id=lnPersonID ;
>>>		INTO CURSOR curTemp
>>>browse
>
>The question still remains how to do this SQL "straight forward" (instead of using the lnName). I did another SQL also with two tables and works. There may come a time where I may need data from three tables where the "lnName" may not be possible.
>
>Chuck

Chuck,

Each solution depends on situation :) Did you see Rich's answer? If you did seek first, you can use info from the record, e.g. Person.Name, Person.Age, etc., but don't include Person table in your SQL.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform