blinx
10-11-2004, 08:01 PM
Hi,
I'm using this code to delete records from database (dbase IV)
Public Sub Deletemint()
Dim objCon As ADODB.Connection
Dim objCom As ADODB.Command
Dim objRS As ADODB.Recordset
Dim rsmint As ADODB.Recordset
Set objCon = New ADODB.Connection
Set objCom = New ADODB.Command
objCon.connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Extended Properties=dBASE IV;" & _
"Data Source=C:\prog"
objCon.Open objCon.connectionString
Set objRS = New ADODB.Recordset
objRS.Open "delete From mintran", objCon, adOpenStatic, adLockReadOnly, adCmdText
End Sub
The problem is the size of the deleted database remains the same...
for example :
before execute this table has 50 records with 200kb size...
after execution the table has no records but still has 200kb size
how this can happen??
how to solve this?
Thx
I'm using this code to delete records from database (dbase IV)
Public Sub Deletemint()
Dim objCon As ADODB.Connection
Dim objCom As ADODB.Command
Dim objRS As ADODB.Recordset
Dim rsmint As ADODB.Recordset
Set objCon = New ADODB.Connection
Set objCom = New ADODB.Command
objCon.connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Extended Properties=dBASE IV;" & _
"Data Source=C:\prog"
objCon.Open objCon.connectionString
Set objRS = New ADODB.Recordset
objRS.Open "delete From mintran", objCon, adOpenStatic, adLockReadOnly, adCmdText
End Sub
The problem is the size of the deleted database remains the same...
for example :
before execute this table has 50 records with 200kb size...
after execution the table has no records but still has 200kb size
how this can happen??
how to solve this?
Thx