setting variables i think

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • steve0
    New Member
    • Jul 2006
    • 3

    setting variables i think

    hi to all,

    i have a problem that when i compile my project it works fine not a problem with it but when i make my program an exe. and try to run it, it come up with a run-time error '3001'. i placed msgboxes everywhere to see where the problem was as it wouldn't show when compiling. the error was happening when i tried to use text from a textbox of another form. for example:

    With cnUser
    .Provider = FrmOptions.TxtP rovider.Text
    .Open FrmOptions.TxtU serPath.Text

    this form is unable to see the text and i think it has something to do with not setting the variables properly.

    if someone could help i would be very greatful

    cheers
    steve
  • Wrycu
    New Member
    • Sep 2006
    • 9

    #2
    you mean...
    Code:
    With cnUser
        .Provider = FrmOptions.TxtProvider.Text
        .Open FrmOptions.provider
    ??

    Cause otherwise, i dont see why you set provider to anything. its unneeded. And.. it should probably be defined as a string.

    <edit>
    And i dunno what language you are using (it doesnt look like VB6), but it looks to me like you cannot 'open' a text box... or its string... which makes sense.
    </edit>

    Comment

    Working...