• Text Control (VB6)

    Author
    Topic
    #397119

    I’m dabbling with VB again, same project.

    Oh I wish VB had the same usability as Access does !!

    Is there such a thing as After_Update for a text control ?
    I can’t find a reference for this event.

    Viewing 2 reply threads
    Author
    Replies
    • #749521

      It is mostly a question of what you’re used to. A seasoned VB6 programmer would probably feel frustrated in Access.

      No, a text box in VB6 doesn’t have an After Update event. You can use the LostFocus event, but that occurs even if the user hasn’t changed anything, or the Change event, which occurs whenever the user types something.

      • #749526

        Hmmmmmmmm

        Oh well, I’m sure I’ll think of something.

        At the moment I have another problem which (I Think) maybe related to my installation of VB6 & the MSDN files.
        An Access database which runs fine on my office PC will not run correctly on my laptop which has the VB installation.

        I’m getting all kinds of errors from “Out of Stack Space” to “Method ‘Value’ of object’_CustomControl’ failed.

        Created new and imported, still the errors occur.

        • #749538

          > I’m getting all kinds of errors from “Out of Stack Space” to “Method ‘Value’ of object’_CustomControl’ failed.

          Could be a mismatch between one of your project references and the libraries/controls installed on the laptop. Try making a little inventory of the DLLs and OCXs, etc., used by the project on the system where it works. That should help you spot the difference. Better to clean up the deployment glitches before sending it to the client, eh?

        • #749539

          > I’m getting all kinds of errors from “Out of Stack Space” to “Method ‘Value’ of object’_CustomControl’ failed.

          Could be a mismatch between one of your project references and the libraries/controls installed on the laptop. Try making a little inventory of the DLLs and OCXs, etc., used by the project on the system where it works. That should help you spot the difference. Better to clean up the deployment glitches before sending it to the client, eh?

        • #749628

          Did you install VB6 after Office had already been installed? If so, you may have overwritten a DLL with an older version. You might try if Detect and Repair from the Help menu in Access takes care of things. You must have the Office installation CD available for this.

          • #749833

            Hans

            It seems the detect and repair has done the trick, thanks for the suggestion.

            p.s

            Isn’t it ironic that so many things can go wrong to lose confidence in months of hard work.

          • #749834

            Hans

            It seems the detect and repair has done the trick, thanks for the suggestion.

            p.s

            Isn’t it ironic that so many things can go wrong to lose confidence in months of hard work.

        • #749629

          Did you install VB6 after Office had already been installed? If so, you may have overwritten a DLL with an older version. You might try if Detect and Repair from the Help menu in Access takes care of things. You must have the Office installation CD available for this.

      • #749527

        Hmmmmmmmm

        Oh well, I’m sure I’ll think of something.

        At the moment I have another problem which (I Think) maybe related to my installation of VB6 & the MSDN files.
        An Access database which runs fine on my office PC will not run correctly on my laptop which has the VB installation.

        I’m getting all kinds of errors from “Out of Stack Space” to “Method ‘Value’ of object’_CustomControl’ failed.

        Created new and imported, still the errors occur.

    • #749809

      Try the Validate event, which is somewhere between the beforeupdate and the afterupdate event of an Access control. You do need to set the CausesValidation property to True for the event to get triggered.

      • #749827

        Thanks all
        Your flurry of suggestions and ideas are truly appreciated.

      • #749828

        Thanks all
        Your flurry of suggestions and ideas are truly appreciated.

    • #749810

      Try the Validate event, which is somewhere between the beforeupdate and the afterupdate event of an Access control. You do need to set the CausesValidation property to True for the event to get triggered.

    Viewing 2 reply threads
    Reply To: Text Control (VB6)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: