>> JRB-Bldr is right, thoiugh I recommended to go the route of querying only child records of the current parent record at any time.
Thats precisely what I'm doing... (or attempting to do), and it does work quickly after waiting the first initial minute while it is quitely busy.
>> speed up the process is NOT to reset the child grid recordsource
Done... No recordsource changes now... Here is the AfterRowColChange event code including commented out code.
With Thisform As Form
gcCountyPageKey = crsPage.county_pagekey
**************************************************
* PartyName #1 Lookup
aa = "select party_name, party_type, county_pagekey, creator, CREATION_DATE "
bb = "from PartyName where county_pagekey = ?gcCountyPageKey and party_type = '1- Grantor'"
dd = aa+bb
*= SQLPREPARE(lnDS, dd)
*= SQLEXEC(lnDS,dd)
*.DE_AppMain.caPartyName.SelectCmd = dd
dd = ''
REQUERY('crsPartyName')
*.PageFrame1.pagPartyName.grdPartyNameParty1.RecordSource = Space(0)
*.DE_AppMain.caPartyName.CursorFill()
*CursorSetProp("Buffering",5,'crsPartyName')
*.PageFrame1.pagPartyName.grdPartyNameParty1.RecordSource = 'crsPartyName'
.PageFrame1.pagPartyName.grdPartyNameParty1.AutoFit
.PageFrame1.pagPartyName.grdPartyNameParty1.Refresh()
Same delayed result but twice as fast as it now takes 20-30 seconds. Also note the fetch sizes are 100 with a max of 200 for the PartyName CA, while it is 25 with a max of 50 for the page CA. And it on a local gigabit network where both the server and the workstation are extremely fast with I7 cpus... And I'm the only user on the system...
>> The only other question I have is: Do you get the same "connection busy" effect, if you don't scroll through the grid via DOWNARROW key on hold, but via Scrollbar and click on some row?
I set 4 pieces of criteria before fetching the PAGE data and they are:
1. ?gcCountyId ie. 'KY066'
2. ?gcPageType ie. 'DEED'
3. ?gcBookNum ie. '200'
4. ?gcStartPage ie. '1'
This is returned immediately, (split second), and the Page grid is fully populated. The grid receives focus immediately and I manually call the AfterRolColChange event so it can populate the PartyNames grid with partynames that belongs to the page, and that takes 20-30 seconds. Actually you will never see it unless you do something to cause a grid or form refresh, and that requires navigating the page/parent grid. If you only use the scrollbar, you will never see anything as that never triggers a refresh. I did just now add a refresh to the grid's scrolled event, and it too is 20 -30 seconds late.
Once the PartyNames grid finally loads, its speed and ability to match the proper partyname records with their parents is fine and fast...
I'm confused about this Syncronis mode thing. Is it working and why is VFP continuing when its been suggested that vfp waits when Syncronious mode...
More after some testing...
Stanley