I'm back - same Visual Basic application using ADO and a VFPOLEDB connection. The application does not have a database (.DBC), just free tables (.DBF). I'm trying to Pack one of the tables with the following code.
I'm getting an error on the Pack statement that the file is in use - ???
On a separate problem, I'm using:
conn1.Execute ("SET DELETED OFF")
as a basis the counting the number of physical records, i.e. both deleted and undeleted records. It isn't effective because I'm getting a count of only the undeleted records.
Thanks.
Code:
rs1.Close 'Closes the recordset related to the table
Set rs1 = Nothing
conn1.Execute ("SET EXCLUSIVE ON")
conn1.Execute ("PACK GHM_V70.DBF")
On a separate problem, I'm using:
conn1.Execute ("SET DELETED OFF")
as a basis the counting the number of physical records, i.e. both deleted and undeleted records. It isn't effective because I'm getting a count of only the undeleted records.
Thanks.