G
Guest
Hi!
I'm just starting to learn how to program Access 2003 with VBA, and I
discovered that my database is bloating for some reason, I hope that someone
could help me to figure this out...
I'm importing about 40000 rows of data to Access from a server. I put the
data into a table, and everything goes fine. But when I want to delete the
data from the table (I need to do it because I need to test the code), I
succeed, but the size of the database stays the same. So my database is empty
and huge. I close all the recordsets and set them to nothing, so that
shouldn't be the problem?
To delete data from the database I use an SQL command:
Sub Delete_data ()
Dim strSql As String
strSql = "DELETE * FROM Table" 'my table isn't called Table
DoCmd.RunSQL (strSql)
End Sub
When I use the "Compact and repair database" -tool that Access has, the size
of the database drops to normal.
I'm just starting to learn how to program Access 2003 with VBA, and I
discovered that my database is bloating for some reason, I hope that someone
could help me to figure this out...
I'm importing about 40000 rows of data to Access from a server. I put the
data into a table, and everything goes fine. But when I want to delete the
data from the table (I need to do it because I need to test the code), I
succeed, but the size of the database stays the same. So my database is empty
and huge. I close all the recordsets and set them to nothing, so that
shouldn't be the problem?
To delete data from the database I use an SQL command:
Sub Delete_data ()
Dim strSql As String
strSql = "DELETE * FROM Table" 'my table isn't called Table

DoCmd.RunSQL (strSql)
End Sub
When I use the "Compact and repair database" -tool that Access has, the size
of the database drops to normal.