Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TextBox assignment scrolls screen?

Status
Not open for further replies.

MrRedwood

Technical User
Jun 17, 2004
28
US
I've got a text field with the name (bookmark) of Duration, which will have the result of the difference between two dates entered somewhere else in my form. When the dates are improperly set up (i.e., the end is before the beginning), I want to empy the duration field. I use:

Application.Documents(1).FormFields("Duration").Result = ""

Minor question: is the the most economical way of referring to a field? (I'm not really up to speed on VB's object model).

More important question: Why does the screen scroll down until this field is visible? I just want to set it, not jump to it. Is there some way of stopping this behavior?

Not-really-related-question: if I want Mac users to be able to use my forms, I have to avoid ActiveX controls, right? What about the events for controls, like a check box's click event -- is that only part of an ActiveX click box, or any normal click box?

Thanks for any help!
 
This is the VB5/6 forum - read faq222-2244 to see how the forums work, then try forum707

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
This line

>>Application.Documents(1).FormFields("Duration").Result = ""


leads me to think that you are using word or another office application. In which case this is not the correct forum for your question... please see Forum707

You should also read FAQ222-2244 for ways to maximize your experience from using this site (and for ways on finding and using the correct forum for your question).
 
How embarassing. I looked at the "About Microsoft Visual Basic" in the VB editor and saw v6.3 -- I thought I had found the correct forum.

Thanks for the redirect.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top