Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Khurram Tahir
  Where is Khurram Tahir?
 Karachi
 Pakistan
 Khurram Tahir
 To: Jojo Sabino
  Where is Jojo Sabino?
 Makati City
 Philippines
 Jojo Sabino
 Tags
Subject: RE: Select sql and grid
Thread ID: 104345 Message ID: 104358 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Grids
Date: Tuesday, August 15, 2006 12:40:17 PM         
   


> > HDRFN6D="Salgh."
> >
> > I have created a grid and its properties about table are as follows
> >
> > recordsource = "tc_hdr_vw"
> > recordsourcetype = "1-Alias"
> >
> > SELE &HDRFN6D.prnt,invoice_no,subs(mrdminv_no,5,6)+subs(mrdminv_no,1,4) as mrdminv_no,&HDRFN6D.date,;
> > accbal2.accna,amtgrs,disc,expmnininv,amtnet,citmno,invtype,&HDRFN6D.acccd,;
> > trcna,btyno,crtn,bndl,dsptchdby,&HDRFN6D.clkdate,ccna,ccrno,ccrdt,;
> > tnr,inat,usrno__,;
> > subs(mrdminv_no,1,4)+str(val(subs(mrdminv_no,5,6))) as mrdmno_val,;
> > subs(&HDRFN6D.acccd,6,3)+accbal2.accna AS code_alpha_name,;
> > o_chgs,&HDRFN6D.dscptg,btydt,btyexp,prtclar;
> > FROM FORCE &HDRFN6 ;
> > LEFT JOIN ACCBAL2 ;
> > ON &HDRFN6D.ACCCD = ACCBAL2.ACCCD ;
> > WHERE NOT DELETED() ;
> > ORDER BY &ORDRBY7 INTO CURSOR tc_hdr_vw READWRITE
> >
> > After running this command Grid vanishes
> >
> > What are the proper commands if i want to show cursor in a grid

>
>
> why not use RecordSourceType = 4 - SQL Statement; RecordSource = YourSQL
>
>
>
>
> ynajoe


I have tried with this setting also but my grid is still blank & i have check the cursor is not empty there are 8 records in it.

ENTIRE THREAD

Select sql and grid Posted by Khurram Tahir @ 8/15/2006 9:55:34 AM
RE: Select sql and grid Posted by Jojo Sabino @ 8/15/2006 10:03:40 AM
RE: Select sql and grid Posted by Khurram Tahir @ 8/15/2006 12:40:17 PM
RE: Select sql and grid Posted by Andy Kramek @ 8/15/2006 12:41:46 PM
RE: Select sql and grid Posted by Khurram Tahir @ 8/15/2006 1:28:59 PM
RE: Select sql and grid Posted by tushar @ 8/15/2006 5:33:31 PM
RE: Select sql and grid Posted by Andy Kramek @ 8/16/2006 12:34:53 PM
RE: Select sql and grid Posted by Khurram Tahir @ 8/16/2006 12:44:54 PM
RE: Select sql and grid Posted by tushar @ 8/16/2006 1:23:42 PM
RE: Select sql and grid Posted by Andy Kramek @ 8/17/2006 12:43:57 PM
RE: Select sql and grid Posted by Don Higgins @ 8/21/2006 6:25:33 PM