A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Combo box change to run Macro



 
 
Thread Tools Display Modes
  #1  
Old February 4th, 2010, 06:53 PM posted to microsoft.public.access.forms
Mary Beth[_2_]
external usenet poster
 
Posts: 44
Default Combo box change to run Macro

I have a combo box on the frmAssessment with a list of Assessors from a
lookup table. I want to send an email to the Assessor who's name is
displayed in the box either when a new entry or a change of names when
editing. I created a macro with a condition of [RNAssessor] = "Jane Doe" and
the action SendObject with Jane Doe's email address - similarly for each
Assessor's name.

The problem I'm having is I cannot get the event to trigger. I tried the
OnChange and AfterUpdate events and they don't work.

Any help you can give me will be much appreciated.

Mary Beth
  #2  
Old February 4th, 2010, 09:50 PM posted to microsoft.public.access.forms
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Combo box change to run Macro

A couple of things come to mind --
Is RNAssessor a lookup combo with two columns, the first being a number and
second being text? If it is lookup the condition needs to match the number.

Try have macro pop up a message box to see if it is being triggered but not
sending e-mail.

--
Build a little, test a little.


"Mary Beth" wrote:

I have a combo box on the frmAssessment with a list of Assessors from a
lookup table. I want to send an email to the Assessor who's name is
displayed in the box either when a new entry or a change of names when
editing. I created a macro with a condition of [RNAssessor] = "Jane Doe" and
the action SendObject with Jane Doe's email address - similarly for each
Assessor's name.

The problem I'm having is I cannot get the event to trigger. I tried the
OnChange and AfterUpdate events and they don't work.

Any help you can give me will be much appreciated.

Mary Beth

  #3  
Old February 5th, 2010, 03:44 PM posted to microsoft.public.access.forms
Mary Beth[_2_]
external usenet poster
 
Posts: 44
Default Combo box change to run Macro

Yes, I do have two columns in the lookup table, the first being an auto
number and the second, the names. I was wondering about this and have
discovered that it works better if you use the number instead of the text. I
used an OnExit event with edit capabilities on the email. It works
beautifully!!! Thanks alot!

"KARL DEWEY" wrote:

A couple of things come to mind --
Is RNAssessor a lookup combo with two columns, the first being a number and
second being text? If it is lookup the condition needs to match the number.

Try have macro pop up a message box to see if it is being triggered but not
sending e-mail.

--
Build a little, test a little.


"Mary Beth" wrote:

I have a combo box on the frmAssessment with a list of Assessors from a
lookup table. I want to send an email to the Assessor who's name is
displayed in the box either when a new entry or a change of names when
editing. I created a macro with a condition of [RNAssessor] = "Jane Doe" and
the action SendObject with Jane Doe's email address - similarly for each
Assessor's name.

The problem I'm having is I cannot get the event to trigger. I tried the
OnChange and AfterUpdate events and they don't work.

Any help you can give me will be much appreciated.

Mary Beth

 




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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:04 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.