The Source of a combo keeps getting changed by itself ???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • matrekz42
    New Member
    • Sep 2007
    • 37

    The Source of a combo keeps getting changed by itself ???

    Good morning Guru's

    I have a form that has a combo box and the source of a combo keeps getting changed by itself.

    I haven't found the pattern if it happens after compact and repair or after debug. But the criteria of the source changes to sort by same item in another form.

    The entry form is meant to sort by [form]![Entryform]![cbo_file] and it automatically changes to [form]![Auditorform]![cbo_file]

    The Control Source is a query.

    Im clueless, any guesses?
  • puppydogbuddy
    Recognized Expert Top Contributor
    • May 2007
    • 1923

    #2
    Originally posted by matrekz42
    Good morning Guru's

    I have a form that has a combo box and the source of a combo keeps getting changed by itself.

    I haven't found the pattern if it happens after compact and repair or after debug. But the criteria of the source changes to sort by same item in another form.

    The entry form is meant to sort by [form]![Entryform]![cbo_file] and it automatically changes to [form]![Auditorform]![cbo_file]

    The Control Source is a query.

    Im clueless, any guesses?

    The syntax is not correct....so it could cause Access's response to be unpredictable. Have you been compiling your code? I don't understand why you did not get a compile error.

    Change>>>>> [form]![Entryform]![cbo_file]
    To>>>>>>>>> [Forms]![Entryform]![cbo_file]

    Let us know if that fixed the problem.

    Comment

    • NeoPa
      Recognized Expert Moderator MVP
      • Oct 2006
      • 32666

      #3
      I can't see how either is even possible.
      What would [form]![Anything] resolve to?
      Is it possible that you've posted without copy/pasting?

      Comment

      • matrekz42
        New Member
        • Sep 2007
        • 37

        #4
        OK, I figured it out. The problem was... Drum roll please...

        The Mysysqueries would keep in memory that I saved as a form and was reseting every object's source back to what it was before

        So I fixed it, but thanks for all your help.

        Comment

        Working...