e.mail . from field " assigned to " (1 Viewer)

rainbows

Registered User.
Local time
Yesterday, 16:54
Joined
Apr 21, 2017
Messages
425
hi

I have a form called input table of which there is a field called " assigned to"

I have a button on the top of my form called " e.mail

the idea is when I want to send a e mail it looks at the assigned to and sends the details to him .

at this time it keeps giving me an error and I Dont know why
could you please look at my database as help me

please select " edit deviation report " and type in 5 or 6 to get to a completed form

thank you
steve
 

Attachments

  • Database7.zip
    563.6 KB · Views: 60

essaytee

Need a good one-liner.
Local time
Today, 09:54
Joined
Oct 20, 2008
Messages
512
What is the error reported by Access?
 

June7

AWF VIP
Local time
Yesterday, 15:54
Joined
Mar 9, 2014
Messages
5,465
Remove space that is in FROM address mike. Hawkins

You are using ID to search for email but the combobox does not include ID in RowSource. You are saving Employee names not IDs into input.

=DLookUp("[E-mail Address]","Employees","[Employee]='" & Nz([To],"") & "'")

The Replace() is not finding Title field.

I recommend using VBA instead of macro - I never use macros. You already have some VBA, why not continue with VBA?
 
Last edited:

rainbows

Registered User.
Local time
Yesterday, 16:54
Joined
Apr 21, 2017
Messages
425
Hi

space removed
this is the error


Code:
 costs1, Excel97-Excel2003Workbook(*.xls), =DLookUp("[E-mail Address]","employees","[ID]=" & Nz([Assigned To],0))


error number 2950

thanks
steve
 

June7

AWF VIP
Local time
Yesterday, 15:54
Joined
Mar 9, 2014
Messages
5,465
You read my previous post before I finished editing. Might review again.
 

Users who are viewing this thread

Top Bottom