RE: select statement problem
From: Eddy (Eddy_at_discussions.microsoft.com)
Date: 09/17/04
- Next message: Stefan Wuebbe: "Re: Project Manager problem"
- Previous message: Anand: "Re: How to run SQL Script through VFP?"
- In reply to: Eddy: "select statement problem"
- Next in thread: Bill Browne: "Re: select statement problem"
- Reply: Bill Browne: "Re: select statement problem"
- Reply: Anders Altberg: "Re: select statement problem"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 16 Sep 2004 23:59:02 -0700
Thanks for all your help,
here some more details about my case.
I am using VFP6 SP4.
I put the statement
select pinvitem.invnum....... order by pinvitem.invnum , pinvitem.partno asc
in a test.prg, then
do test.prg. Result is
I can get a table 'invallo.dbf' and in the record order that I want.
but error occurs in the case as described below
Is this problem only appear in VFP6 ?
"Eddy" wrote:
> Hi,
> The following statement is placed in the init event of myform
>
> thisform.grid1.RowSource = "select pinvitem.invnum, pinvitem.partno,
> pinvoice.invdate ;
> from pinvitem, pinvoice into table invallo where pinvoice.invdate = date() ;
> and pinvoice.invnum = pinvitem.invnum and pinvitem.recstat = 'P' ;
> order by pinvitem.invnum, pinvitem.partno asc"
>
> thisform.grid1.RowSourceType = 4
>
> I got an error message : 'commands contains unrecognized pharse/keyword'
>
> but I do the above 'select' statement alone , it has no error at all.
> please give me a hand
> thanks
- Next message: Stefan Wuebbe: "Re: Project Manager problem"
- Previous message: Anand: "Re: How to run SQL Script through VFP?"
- In reply to: Eddy: "select statement problem"
- Next in thread: Bill Browne: "Re: select statement problem"
- Reply: Bill Browne: "Re: select statement problem"
- Reply: Anders Altberg: "Re: select statement problem"
- Messages sorted by: [ date ] [ thread ]