Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

MS Access 2003 Form Focus Problem

Posted on 2016-10-19
4
Medium Priority
?
60 Views
Last Modified: 2016-10-19
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
Comment
Question by:dwcummings
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
COACHMAN99 earned 2000 total points
ID: 41850437
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
 
LVL 3

Author Comment

by:dwcummings
ID: 41850686
One cannot set the popup property in VBA, but can set the modal property. I did, and it worked. Thanks for the suggestion.
0
 
LVL 7

Expert Comment

by:COACHMAN99
ID: 41850690
good to hear :-)
0
 
LVL 3

Author Closing Comment

by:dwcummings
ID: 41850705
Thanks again!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question