I know this should be a simple problem to fix but it eludes me..
In my dbc all my tables are there and relations are set..np..
In my form the data environment has the tables in it also..np..
Problem is every time I try to cycle through the records with SKIP 1 or anything the vfp "Tables in database" window opens wanting me to open one of the tables thats in in the dbc..I have looked in the data session window and the tables are open and the relations are set,,at least as far as i can see. If I select any of the tables in the "Tables in database" window i get "File in Use" ERROR
The following is what i have cut out of the main prg that relates to this problem .. i think
CLOSE DATABASES
SET COMPATIBLE ON
SET CENTURY ON
SET MULTILOCKS ON
SET EXCLUSIVE ON
OPEN DATABASE ('path\filename')
SELECT 0
USE file1
SET ORDER TO file1idx Ascending
= CURSORSETPROP('Buffering',3,'file1')
SELECT 0
USE file2
SET ORDER TO file2idx Ascending
= CURSORSETPROP('Buffering',3,'file2')
"I do this for all the tables in the dbc"
DO FORM formname
This is what i placed into the "Next" nav button for next record
SELECT (THIS.parent.nWorkArea)
IF !EOF()
SKIP 1
ENDIF
THIS.Parent.EndFile = EOF()
THIS.Parent.TopFile = BOF()
THISFORM.rFreshList1()
THIS.Parent.NavRefresh()
In debug it dies at the SKIP 1 line
I do not know if this is the best way to do this,,i have been out sick for a long time and trying to get back into it..Hope someone can help,,and if I am doing anything wrong please tell me.. Any suggestions will be appreciated .
In my dbc all my tables are there and relations are set..np..
In my form the data environment has the tables in it also..np..
Problem is every time I try to cycle through the records with SKIP 1 or anything the vfp "Tables in database" window opens wanting me to open one of the tables thats in in the dbc..I have looked in the data session window and the tables are open and the relations are set,,at least as far as i can see. If I select any of the tables in the "Tables in database" window i get "File in Use" ERROR
The following is what i have cut out of the main prg that relates to this problem .. i think
CLOSE DATABASES
SET COMPATIBLE ON
SET CENTURY ON
SET MULTILOCKS ON
SET EXCLUSIVE ON
OPEN DATABASE ('path\filename')
SELECT 0
USE file1
SET ORDER TO file1idx Ascending
= CURSORSETPROP('Buffering',3,'file1')
SELECT 0
USE file2
SET ORDER TO file2idx Ascending
= CURSORSETPROP('Buffering',3,'file2')
"I do this for all the tables in the dbc"
DO FORM formname
This is what i placed into the "Next" nav button for next record
SELECT (THIS.parent.nWorkArea)
IF !EOF()
SKIP 1
ENDIF
THIS.Parent.EndFile = EOF()
THIS.Parent.TopFile = BOF()
THISFORM.rFreshList1()
THIS.Parent.NavRefresh()
In debug it dies at the SKIP 1 line
I do not know if this is the best way to do this,,i have been out sick for a long time and trying to get back into it..Hope someone can help,,and if I am doing anything wrong please tell me.. Any suggestions will be appreciated .