+ Reply to Thread
Results 1 to 2 of 2

Compile Error: Sub or Function Not Defined

  1. #1
    Registered User
    Join Date
    12-19-2006
    Posts
    1

    Compile Error: Sub or Function Not Defined

    I have built a user form that has a text box that is called "Job/P.O. #" and when I attempt to open this form it gets hung up on this line of the code

    txt("Job/P.O.#").Value = ""

    and says Compile Error: Sub or Function Not Defined.

    I am a novice at this and can't seem to figure this one out.

    Help!

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by janderson
    I have built a user form that has a text box that is called "Job/P.O. #" and when I attempt to open this form it gets hung up on this line of the code

    txt("Job/P.O.#").Value = ""

    and says Compile Error: Sub or Function Not Defined.

    I am a novice at this and can't seem to figure this one out.

    Help!
    It doesn't look like anything I understand, what were you trying to do ?

    note "Job/P.O.#" is not a valid textbox name, so I would expect

    Userform1.Textbox1.text=""
    ---
    Last edited by Bryan Hessey; 12-19-2006 at 09:24 AM.
    Si fractum non sit, noli id reficere.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1