Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 63
  • Last Modified:

MS Access 2003 Form Focus Problem

I have a form that is used to consolidate records. The ID numbers of the customer to eliminate and customer to consolidate into are passed to the form when it is called. An OnLoad event populates the form with the demographic information for both customers. After this information is loaded, a routine (AutoSelect) is called that attempts to decide which elements from each record should be preserved. For example, if the customer to be eliminated has a phone number but the consolidation customer does not, a check is placed in a box next to the eliminated customer's phone number field to indicate that it has been selected. Similar decisions are made regarding the address, sales rep, email address, etc. The user can then override the automatic selections before consolidating the customers.

In test mode, everything is working as intended.  But as soon as I set the Pop Up and Modal properties of the form to Yes, the AutoSelect routines either don't seem to get called or it doesn't display the results. Actually, I think that it is the latter.

I should add, however, that before I set the pop up and modal properties to Yes, I had to call the AutoSelect routines from the On Activate property for the form.

Thoughts?

Thanks for your assistance,

Doug
0
dwcummings
Asked:
dwcummings
  • 2
  • 2
1 Solution
 
COACHMAN99Commented:
maybe set the popup (or just modal) properties once the form is loaded (in the Current or Activated event?)
I haven't tried this to see if it works.
0
 
dwcummingsAuthor Commented:
One cannot set the popup property in VBA, but can set the modal property. I did, and it worked. Thanks for the suggestion.
0
 
COACHMAN99Commented:
good to hear :-)
0
 
dwcummingsAuthor Commented:
Thanks again!
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now