G
Guest
I have the following code supplied to me by Dirk Goldgar.
With cnt
For intDocX = .Documents.Count - 1 To 0 Step -1
appAccess.DoCmd.DeleteObject iObjectType, Documents(intDocX).Name
Next intDocX
End With
It won't compile. I am getting an error on the third line.
Documents(intDocX).name
The word Documents is highlighted and it says sub not defined. Does anybody
know the reason?
With cnt
For intDocX = .Documents.Count - 1 To 0 Step -1
appAccess.DoCmd.DeleteObject iObjectType, Documents(intDocX).Name
Next intDocX
End With
It won't compile. I am getting an error on the third line.
Documents(intDocX).name
The word Documents is highlighted and it says sub not defined. Does anybody
know the reason?