![]() | |
#1
| |||
| |||
|
|
I want to read the description property for a report (or a form, table, etc.). I tried to do it with the Allreports object. I can get the name, the dates, but I can't get the description. I was able to do it using a DAO object: Public Function test() Dim dbs As DAO.Database Dim docLoop As Document Dim i, pcnt As Integer Set dbs = CurrentDb With dbs.Containers!Reports For Each docLoop In .Documents pcnt = docLoop.Properties.Count For i = 0 To pcnt - 1 Debug.Print i & " " & docLoop.Properties(i) Next i Next docLoop End With dbs.Close End Function When i is 10 I get the description if the item has one or an error if it doesn't. But now I have one peice of DAO surrounded by ADO. |
![]() |
| Thread Tools | |
| Display Modes | |
| |