RE: Error in code
From: L. R. Hurtado (LRHurtado_at_discussions.microsoft.com)
Date: 03/21/05
- Next message: Steven M. Britton: "Re: Formatting Excel File"
- Previous message: Alex Dybenko: "Re: Error in code"
- In reply to: SHIPP: "Error in code"
- Next in thread: SHIPP: "RE: Error in code"
- Reply: SHIPP: "RE: Error in code"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 21 Mar 2005 07:53:04 -0800
The probably reason why yuur code is not compiling and giving you such error
message should be because there is a missed function called Documents which
you don't have in your code. Check with your code provider for that function.
"SHIPP" wrote:
> 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?
>
> --
> M. Shipp
- Next message: Steven M. Britton: "Re: Formatting Excel File"
- Previous message: Alex Dybenko: "Re: Error in code"
- In reply to: SHIPP: "Error in code"
- Next in thread: SHIPP: "RE: Error in code"
- Reply: SHIPP: "RE: Error in code"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|