Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2003
    Location
    Belgium
    Posts
    42

    Post Unanswered: General VBA code problem...

    Hi experts,

    I have a general problem with my VBA code:

    I have 2 forms, that are exact copies of eachother.
    In form1, if I type : me. , I see all the names of my combo's and textfields.
    So if I type : me.cboCombo = 3 => there is no problem.

    In form2, if I type the same, he can't find my combo's and textfields.
    So if I type : me.cboCombo = 3 => he can't find "cboCombo".
    I have to type : cboCombo = 3 (without me.) for the code to work.


    The strange thing is that the code has worked before. I don't have a clue what the problem is... I have this problem in several forms. Before I change the whole code, I'd like to know if someone knows an explanations for this hocus pocus.

    Thanx a lot,

    Koen

  2. #2
    Join Date
    Oct 2003
    Location
    Roanoke, Va
    Posts
    445

    Smile Re: General VBA code problem...

    Originally posted by MrData
    Hi experts,

    I have a general problem with my VBA code:

    I have 2 forms, that are exact copies of eachother.
    In form1, if I type : me. , I see all the names of my combo's and textfields.
    So if I type : me.cboCombo = 3 => there is no problem.

    In form2, if I type the same, he can't find my combo's and textfields.
    So if I type : me.cboCombo = 3 => he can't find "cboCombo".
    I have to type : cboCombo = 3 (without me.) for the code to work.


    The strange thing is that the code has worked before. I don't have a clue what the problem is... I have this problem in several forms. Before I change the whole code, I'd like to know if someone knows an explanations for this hocus pocus.

    Thanx a lot,

    Koen
    Whenever the autolist members don't show automatically, I usually try to compile the project. Usually it's a problem with a variable not declared or an If without End If type of problem. Maybe you changed something accidentally.

    Good luck.

    Gregg

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •