msgbox!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lee123
    Contributor
    • Feb 2007
    • 556

    msgbox!

    i have a toggle button on my form and when it toggled on it says "Check" and the text box named "check" is visible. And when it's toggle off it say's "Cash" and the textbox is invisible. Now i have put a code in the afterupdate event and in the code i have put a msgbox that says "Please Enter In A Check Number" it works fine and all but when you close out of the form and re-enter the form again the same msgbox pops up how do i stop this from happening.

    lee123
  • missinglinq
    Recognized Expert Specialist
    • Nov 2006
    • 3533

    #2
    lee123, you've been on this forum long enough to know that if you want us to tell you what's wrong with your code, you have to post your code! Many of us here are out of our minds, but that doesn't mean that we are in your mind!

    Post your code and we'll try to help!

    Linq ;0)>

    Comment

    • Scott Price
      Recognized Expert Top Contributor
      • Jul 2007
      • 1384

      #3
      Try putting the MsgBox routine inside an If... Then statement that tests to see if the text box is visible before executing the message box code.

      Regards,
      Scott

      Comment

      • Scott Price
        Recognized Expert Top Contributor
        • Jul 2007
        • 1384

        #4
        LOL Linq, I'm in complete agreement. Thanks for putting that so succinctly :-)

        If you expect us to give more specific help, Lee, you will have to post your code.

        Thanks,
        Regards,
        Scott

        Comment

        • lee123
          Contributor
          • Feb 2007
          • 556

          #5
          never mind i have figured it out.

          lee123

          Comment

          • mshmyob
            Recognized Expert Contributor
            • Jan 2008
            • 903

            #6
            I'll have to remember this one Linq.... :)

            Originally posted by missinglinq
            Many of us here are out of our minds, but that doesn't mean that we are in your mind!


            Linq ;0)>

            Comment

            Working...