Actuarial Outpost
 
Go Back   Actuarial Outpost > Actuarial Discussion Forum > Software & Technology
FlashChat Actuarial Discussion Preliminary Exams CAS/SOA Exams Cyberchat Around the World Suggestions


Reply
 
Thread Tools Display Modes
  #1  
Old 02-01-2002, 10:53 AM
General Kenobi (ret.) General Kenobi (ret.) is offline
Member
 
Join Date: Sep 2001
Location: More powerful than you can possibly imagine
Posts: 1,031
Default

I have this huge form. When the user selects a line of business, the LOB control has a change event that populates the form with the appropriate coverages for that line.

This form can print out reports for a number of states, so I'm trying to automate the process of stepping through states, then through coverages. But I'm running into a problem.

If I change the value of the LOB control from VBA, it doesn't trigger the change event and the coverage section doesn't update. "No problem," I said to myself. "I'll just use SetFocus and SendKeys to manipulate the form."

It works, too, except that if I switch applications while the VBA is running (for example, if I decide to check in on the Rebel Forum), SendKeys happily sends its keystrokes to whatever the foreground application may be (for example, Internet Explorer).

Any thoughts?
Reply With Quote
  #2  
Old 02-01-2002, 10:55 AM
Oracle's Avatar
Oracle Oracle is offline
Member
AAA
 
Join Date: Sep 2001
Location: Delphi
Posts: 955
Default

12-step program for Obi-wan??
Reply With Quote
  #3  
Old 02-01-2002, 11:00 AM
General Kenobi (ret.) General Kenobi (ret.) is offline
Member
 
Join Date: Sep 2001
Location: More powerful than you can possibly imagine
Posts: 1,031
Default

OK, any constructive thoughts?

(Memo to glenn: we need a CTM smiley)
Reply With Quote
  #4  
Old 02-01-2002, 12:40 PM
General Kenobi (ret.) General Kenobi (ret.) is offline
Member
 
Join Date: Sep 2001
Location: More powerful than you can possibly imagine
Posts: 1,031
Default

Got it. I never got the distinction between the Text and Value properties before.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -4. The time now is 08:24 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
*PLEASE NOTE: Posts are not checked for accuracy, and do not
represent the views of the Actuarial Outpost or its sponsors.
Page generated in 0.13438 seconds with 7 queries