Concentra2007
Technical User
We have a monthly program in FP6 that manipulates data in Foxpro dbf files, then converts them to Microsoft Excel and formats them for end users. One of our dbf files is over the 16,000ish record limit that Foxpro is assuming Microsoft Excel has (though Excel 2003 can go up to 65,000 records). FP is cutting off our data at the expected limit.
This is the main problem I would like suggestions for.
The following paragraphs outline the idea I tried and the specific problems I am having with it.
I am experimenting with writing the FP code to divide the dbf into two Excel files, then combine the two using "With Excel" commands in FP. The divide is easy and I can open the first file no problem, I just can't figure out how to combine the second file into it. The commands with the Excel menus are Data|Import External Data|Import Data.
To get ideas, I recorded the above keystrokes in a macro in Excel:Visual Basic and copied it into FP. See below. Program|Compile returns syntax errors on the first (really long) line and the fourth. I assume they have commands that FP6 doesn't know or aren't used correctly for FP6. But my FP knowledge doesn't go that deep. Any suggestions?
Thanks a bunch!
This is the main problem I would like suggestions for.
The following paragraphs outline the idea I tried and the specific problems I am having with it.
I am experimenting with writing the FP code to divide the dbf into two Excel files, then combine the two using "With Excel" commands in FP. The divide is easy and I can open the first file no problem, I just can't figure out how to combine the second file into it. The commands with the Excel menus are Data|Import External Data|Import Data.
To get ideas, I recorded the above keystrokes in a macro in Excel:Visual Basic and copied it into FP. See below. Program|Compile returns syntax errors on the first (really long) line and the fourth. I assume they have commands that FP6 doesn't know or aren't used correctly for FP6. But my FP knowledge doesn't go that deep. Any suggestions?
Thanks a bunch!
Code:
With .ActiveSheet.QueryTables.'Add'(Connection:=Array("OLEDB;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=M:\Projects\Working\largefile\temphalf.xls;Extended Properties=""HDR=YES;"";Jet OLEDB:Engine Type=34"),Destination:=Range("A" + ALLT(STR(m.findcell))))
.CommandType = xlCmdTable
.CommandText = Array("temphalf$")
.Refresh BackgroundQuery:=False
EndWith