Hi Tom,
It's really fairly simple. When you set the RecordSourceType to "SQL Statement", you have to actually type a SQL SELECT statement into the RecordSource property. The statement will then generate a cursor, which becomes the data source for the grid.
By contrast, when you use "Alias", you supply the alias of any view, cursor or open table.
Personally, I've never seen the point of using "SQL Statement" because "Alias" in effect lets you do the same thing, and more. If I want to use a SELECT to populate a grid, I would run the SELECT first (to create a cursor), then use that cursor as the RecordSource.
If anyone knows any good reason to use "SQL Statement", I'd be interested to hear it. Otherwise, I suggest you just ignore it.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
My Visual FoxPro site: www.ml-consult.co.uk