Results 1 to 8 of 8
  1. #1
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Text Control (VB6)

    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.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Text Control (VB6)

    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.

  3. #3
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Text Control (VB6)

    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.

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Text Control (VB6)

    > 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?

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Text Control (VB6)

    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.

  6. #6
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Text Control (VB6)

    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.
    Charlotte

  7. #7
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Text Control (VB6)

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

  8. #8
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Text Control (VB6)

    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.

Posting Permissions

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