"For Loop not initialised" error in Subform Wizard

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shalskedar
    New Member
    • Sep 2009
    • 66

    "For Loop not initialised" error in Subform Wizard

    In my database if I try to use the Subform Wizard it gives me the following error:

    "For Loop not initialised"

    If I try to use any subform in the Main form, it gives me the same error.
    Is this error generated if Ms Access database is corrupted?
  • TheSmileyCoder
    Recognized Expert Moderator Top Contributor
    • Dec 2009
    • 2322

    #2
    I presume you have allready tried Compact And Repair (After taking a backup!)?

    What access version?
    What type of form?
    Is there any code behind the main form?

    Comment

    • NeoPa
      Recognized Expert Moderator MVP
      • Oct 2006
      • 32633

      #3
      That error relates to some VBA code. It would be easier to help you clearly if you posted the code it's associated with.

      When posting any code on here please :
      1. Ensure you have Option Explicit set (See Require Variable Declaration).
      2. Try to compile it. If it doesn't compile for any reason please explain that clearly - including the error message and which line of your code it appears on. Compilation is done from the Visual Basic Editor menu - Debug \ Compile Project (Where Project is the actual name of your project).
      3. Copy your code (using the Clipboard - Cut / Copy / Paste) from your project directly into your post. Typing in code is not appreciated as it is likely to introduce typos which cause members to waste their time unnecessarily.
      4. Ensure that the code in your post is enveloped within CODE tags (For more on this see BB Code List). The hash (#) button in the posting page helps with this. Simply select your code and click on the hash button to have it enveloped automatically.

      If all these points are covered then all members will be better able to understand, and therefore attempt to answer, your question.

      Comment

      Working...