chpicker
Programmer
- Apr 10, 2001
- 1,316
Ok...for the first month or so that I started using SQL Select statements, I thought they were pretty cool. You end up with a small table of just the items you want.
However, for some strange reason, occasionally it will behave rather odd. I issue this statement:
Instead of my nice little table that contains a handful of records, what I seem to end up with is a filtered version of the original table. The current/total record on the status bar reflect the original table. The name shown on the bar is "TempCur(Database!MyTable)" instead of just "TempCur". If I set a grid recordsource to "TempCur", even though there is only 1 record in the query, the scrollbar is tiny, indicating that there are 98000 records. If I click the UP arrow on the grid...it locks VFP up for about 15 seconds while it scans for more records to display.
Does anyone know if there is some kind of setting that causes SQL-SELECT to do this? It doesn't always happen...just sometimes.
However, for some strange reason, occasionally it will behave rather odd. I issue this statement:
Code:
SELECT TimeField,Addy1,Addy2 FROM (MyTable) WHERE ;
CustNum=m.CustNum and DateField=DATE() ;
INTO CURSOR (TempCur)
Does anyone know if there is some kind of setting that causes SQL-SELECT to do this? It doesn't always happen...just sometimes.