M
Mav-Man
I run following code:
Dim db As DAO.Database
Dim docLoop As Document
Dim prpLoop As Property
Dim i As Integer
Dim pcnt As Integer
Set db = CurrentDb
Dim rstRep As ADODB.Recordset
Set rstRep = New ADODB.Recordset
rstRep.Open "xxReports", CurrentProject.Connection,
adOpenKeyset, adLockOptimistic
db.Containers("Reports").Documents.Refresh
With db.Containers!Reports
For Each docLoop In .Documents
'If docLoop.Properties(7) >= #8/28/2003# Then
rstRep.AddNew
rstRep("ReportName") =
docLoop.Properties(0)
rstRep("DateCreated") =
docLoop.Properties(6)
rstRep("DateModified") =
docLoop.Properties(7)
'rstRep("Description") =
docLoop.Properties(10)
rstRep.Update
'End If
Next docLoop
End With
rstRep.Close
Set rstRep = Nothing
db.Close
Set db = Nothing
ehandler:
If Err = 3265 Then Resume Next
Only to discover that the "LastModified" date is not
always the same as what the Database window shows.
rptLeaveReport, in the Database window says the
LastModified date was 08/29/2003 ... but run the code and
it says the LastModified date is 05-13-2002!
What's up with this. Tried Compact and Repair ... same
result. Database window still says 08/29/2003
but .Documents!Reports says 05-13-2002.
Furthermore, can't find the "Description" property. You
know, you type a description of the Report. When I
enumerate through the properties, I get (0) thru
(7). "Description" is NOT one of them.
I'm documenting a database. I'd like to drop the Report
Names and the "Description" into a table, but can't find
the "Description" property. (7) is "LastModified" ... (0)
is "Name" ... where is "Description"????
Dim db As DAO.Database
Dim docLoop As Document
Dim prpLoop As Property
Dim i As Integer
Dim pcnt As Integer
Set db = CurrentDb
Dim rstRep As ADODB.Recordset
Set rstRep = New ADODB.Recordset
rstRep.Open "xxReports", CurrentProject.Connection,
adOpenKeyset, adLockOptimistic
db.Containers("Reports").Documents.Refresh
With db.Containers!Reports
For Each docLoop In .Documents
'If docLoop.Properties(7) >= #8/28/2003# Then
rstRep.AddNew
rstRep("ReportName") =
docLoop.Properties(0)
rstRep("DateCreated") =
docLoop.Properties(6)
rstRep("DateModified") =
docLoop.Properties(7)
'rstRep("Description") =
docLoop.Properties(10)
rstRep.Update
'End If
Next docLoop
End With
rstRep.Close
Set rstRep = Nothing
db.Close
Set db = Nothing
ehandler:
If Err = 3265 Then Resume Next
Only to discover that the "LastModified" date is not
always the same as what the Database window shows.
rptLeaveReport, in the Database window says the
LastModified date was 08/29/2003 ... but run the code and
it says the LastModified date is 05-13-2002!
What's up with this. Tried Compact and Repair ... same
result. Database window still says 08/29/2003
but .Documents!Reports says 05-13-2002.
Furthermore, can't find the "Description" property. You
know, you type a description of the Report. When I
enumerate through the properties, I get (0) thru
(7). "Description" is NOT one of them.
I'm documenting a database. I'd like to drop the Report
Names and the "Description" into a table, but can't find
the "Description" property. (7) is "LastModified" ... (0)
is "Name" ... where is "Description"????