Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Mike Yearwood
  Where is Mike Yearwood?
 Toronto
 Canada
 Mike Yearwood
 To: mohammed qasem
  Where is mohammed qasem?
 amman
 Jordan
 mohammed qasem
 Tags
Subject: RE: select
Thread ID: 209677 Message ID: 209726 # Views: 1 # Ratings: 1
Version: Visual FoxPro 9 Category: Forms
Date: Tuesday, December 30, 2008 4:12:13 PM         
   


> thank you very much,
> but i have empname at 2 tables ,i need to get it from emp1.dbf
> i use
> thisform.text5.value = TAliascursor1.empname&& i get empname from another table,
>

It is a bad idea to have same field names in multiple tables. If you must do that in a query, give them different names

Select ;
T2.empname, ;
T3.empname as empname2 && like this ;
FROM trans1 T1 ;
INNER Join emp1 T2 On T1.empno = T2.empno AND T1.mark1>=0 ;
left Join empdep T3 On T1.fexerno=T3.empno ;
where T1.empno=thisform.text4.value ;
Order By date1,sno ;
nofilter ;
Into Cursor TAliascursor1

thisform.Grid1.RecordSource=" TAliascursor1"
thisform.text5.value=tAliascursor1.empname




>
> >
> > Mohammed. I am surprised that you still find the simplest things so difficult. You selected ts.empname into the cursor TAliascursor1
> >
> > thisform.text5.value = TAliascursor1.empname
> >
> > Mike Yearwood
> > Microsoft MVP Visual FoxPro 2008
> >
> >
> >
> > We have enough youth. We need a fountain of smart!
> > There may be many ways to skin a cat, but there are very few right ways to do it.



Mike Yearwood
Microsoft MVP Visual FoxPro 2008



We have enough youth. We need a fountain of smart!
There may be many ways to skin a cat, but there are very few right ways to do it.

ENTIRE THREAD

select Posted by mohammed qasem @ 12/30/2008 1:03:50 PM
RE: select Posted by Mike Yearwood @ 12/30/2008 1:36:36 PM
RE: select Posted by mohammed qasem @ 12/30/2008 2:04:00 PM
RE: select Posted by Mike Yearwood @ 12/30/2008 4:12:13 PM
RE: select Posted by Anders Altberg @ 12/30/2008 4:45:36 PM
RE: select Posted by Cetin Basoz @ 12/30/2008 4:48:00 PM