RE: Error in code

From: L. R. Hurtado (LRHurtado_at_discussions.microsoft.com)
Date: 03/21/05


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



Relevant Pages

  • Re: VB6 crashes after writing exe
    ... VB.exe to crash after compiling and writing the exe. ... Code that for some reason has a flaw that the compiler can not digest. ... the exe file. ... best thing to do is look careful at Your code and see where it could be ...
    (microsoft.public.vb.general.discussion)
  • Re: Forth input line buffered, why?
    ... whether interpreting or compiling waits for the user to type ... The main reason is that it's often desirable to manage the input stream while you're in it. ... I have seen implementations that compile a command line before executing it, in order to be able to use things like IF and DO in the command line, but I think executing before the user is finished typing would be very hard to get used to. ...
    (comp.lang.forth)
  • Re: OpenBSD seems Much Faster Than FreeBSD -- Why?
    ... Not that I've got any particular reason to doubt your impressions, ... you've offered exactly zero support for claims of one being faster than ... but most operating-system code benefits from staying ... What I'm getting at, is that compiling from source is, these days, ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Program Fails When Parameter Fixed Constants are Changed (F77) ??
    ... routine that aren't able to be resolved by the linker. ... for this _MIGHT_ be you're not compiling the module which now contains ... A reason for that could be as simple as you ... cause a link error. ...
    (comp.lang.fortran)
  • Re: Forth input line buffered, why?
    ... whether interpreting or compiling waits for the user to type ... Is there a reason for this, ... apart from avoiding the output getting mixed up with the input? ... emulate the buffer if in ANS mode. ...
    (comp.lang.forth)