Article ID: 140653
Article Last Modified on 2/12/2007
THISFORM.GRID1.RECORDSOURCE=THISFORM.GRID1.RECORDSOURCESuch customization could be headers with different names, longer column lengths, and code placed in the events of columns or headers. For more information, please see the following article in the Microsoft Knowledge Base:
131836 PRB: Grid Not Refreshing Displaying a Cursor from Query
SELECT cust_id, city, country FROM customer INTO CURSOR Temp1
SELECT cust_id, city, country FROM customer WHERE country = "" ;
INTO CURSOR Temp2
SELECT Temp1 USE SELECT Temp2 USE
ColumnCount=3 RecordSourceType=Alias RecordSource=Temp1
THISFORM.GRID1.RECORDSOURCE = "Temp2"
SELECT cust_id, city, country FROM customer ;
WHERE country = Thisform.text1.value ;
INTO CURSOR Temp1
THISFORM.GRID1.RECORDSOURCE = "Temp1"
THISFORM.GRID1.RECORDSOURCE = THISFORM.GRID1.RECORDSOURCEAfter running the form, typing a country name in the text box, and clicking the command button, note that the column name changes and the width is smaller.
Additional query words: VFoxMac VFoxWin
Keywords: KB140653