-
WSgbanks
AskWoody LoungerThanks Hans. I tried that and after in ran I got an error of invalid use of null. I pasted the SQL below. There are no null values in the aptDate field..
SELECT Count(event_tbl.[ApptID]) AS [CountOfApptID], CLng([Appointment Date]) AS ApptDate
FROM IBTTOEFLEvent_tbl
GROUP BY CLng([Appointment Date])
HAVING (((CLng([Appointment Date]))>=#1/1/2007# And (CLng([Appointment Date]))<=#11/30/2007#)); -
WSgbanks
AskWoody LoungerHey Hans. I just wanted to give you an update. I was able to get this working uusing sentonbehalfof. Once I got the permissions straightened out with the group mailbox I was good to go. As always thanks for you help and thank to all whp post answers to postings on this board. It really is a god send.
-
WSgbanks
AskWoody LoungerTried that and they wern’t thrilled with it. I could add the text to a table like you mentioned earlier but how do I format it like a letter like they want?
-
WSgbanks
AskWoody LoungerIs there a way to allow outlook to open before sending the email and allow the user to set the from and the send the email? Even if they had to press the send button that would be ok..
With objDoc.MailEnvelope.Item
.To = Nz(srt, “”)
.Subject = strSubject
.SentOnBehalfOfName = “gbanks@ets.org”
.Attachments.Add “c:tempword.doc”
.SendEnd With
-
WSgbanks
AskWoody LoungerGood point Hans. I use this so much I forgot. I think you are right though..
-
WSgbanks
AskWoody LoungerFebruary 11, 2008 at 7:29 pm in reply to: inserting word doc text into an email (access 2003) #1096998Hey Hans.
I got this to work in my production db but I did have another question on this sample db. I added a combo box to with a yes or no drop down. If the user select yes I want it to use word.doc on my c:temp folder. If they select no I want it to grab word1.doc for the c:temp folder. Can this be done? Thanks..
-
WSgbanks
AskWoody LoungerFebruary 9, 2008 at 4:08 am in reply to: inserting word doc text into an email (access 2003) #1096746I tired that before I posted and it just hangs now. Can you take a look? Thanks..
-
WSgbanks
AskWoody LoungerFebruary 9, 2008 at 2:00 am in reply to: inserting word doc text into an email (access 2003) #1096737I got it working great. Thanks!! One question is there a way we can have this not automatically send the email. Is there a way they can preview the email and send it themselves.? Thanks
-
WSgbanks
AskWoody LoungerFebruary 8, 2008 at 2:45 pm in reply to: inserting word doc text into an email (access 2003) #1096629Hans I created a sample db with the code on a button on a form and when I ran this is it gave an error saying object does not support this property or method . I set the referenece like you said but not luck. Can you take a look at this? Thanks…
-
WSgbanks
AskWoody LoungerFebruary 8, 2008 at 12:57 pm in reply to: inserting word doc text into an email (access 2003) #1096610So if my word doc is c:word.doc where would I call that in the code? Not sure if I’m doing this right…
dim objDoc As String
objDoc = “c:word.doc”
With objDoc.MailEnvelope.Send
.To = Nz(srt, “”)
‘.To = SQL
.Subject = stSubject
.HTMLBody = stBody -
WSgbanks
AskWoody LoungerFebruary 8, 2008 at 12:07 pm in reply to: inserting word doc text into an email (access 2003) #1096601Just a regular word doc hans. I would say just text.
-
WSgbanks
AskWoody LoungerSorry about that Hans. I am very close to completeing this. I pasted the top part of my code below.. I was using the stlinkCriteria to show only the one record on the CPRreport that I eant to attach. It would pull this number from the form. It worked before when I used sendobject but I’m not sure how to use it now that I’m calling outlook. Any thoughts? Thanks..
stLinkCriteria = “EIRID=” & Chr(34) & Me(“EIRID”) & Chr(34)
This is the old code i used for DoCmd.SendObject
‘DoCmd.SendObject acReport, “CPRReport”, “RichTextFormat(*.rtf)”, “”, “”, “”, “Site CPR Attached”, “If you have any questions please respond to this email. Thank You…”, False, stLinkCriteria
New part
DoCmd.OutputTo ObjectType:=acOutputReport, _
objectname:=”CPRReport”, _
OutputFormat:=acFormatRTF, _
OutputFile:=”F:CPRReport.rtf”, _
Autostart:=Trueim appOutLook As Outlook.Application
Dim MailOutLook As Outlook.MailItem
Set appOutLook = CreateObject(“Outlook.Application”)
Set MailOutLook = appOutLook.CreateItem(olMailItem)With MailOutLook
.To = “gbanks@ets.org”
.Subject = “Batch Releases”
.HTMLBody = “Hello”
.Attachments.Add “F:no CPR.doc”, olByValue, 1, “Incomplete test no CPR”
.Attachments.Add “f:TempCPRReport.rtf”, olByValue, 1, “CPRReport_rpt.rtf”
.Display
End With -
WSgbanks
AskWoody LoungerThey were abosolutlely helpful Thank you so much. I got today’s problem figured out as well. Thanks..
-
WSgbanks
AskWoody LoungerTry this file Hans…
-
WSgbanks
AskWoody LoungerHans the last thing I’m trying to do here is make another pop-up subform so they can have some stored escalation data about the record. I want to have the EIRID from the main form for populate the EIRID field on the subform popup. I tried something below but it doesn’t work. I’ve attached another sample db can you please take a look. Thanks..
Private Sub EscalateCPR_Click()
On Error GoTo Err_Candidates_ClickDim stDocName As String
Dim stLinkCriteria As StringstDocName = “EscalatedCPRS”
stLinkCriteria = Me(“EIRID”).DefaultValue = “””” & Me(“EIRID”).Value & “”””DoCmd.OpenForm stDocName, , , stLinkCriteria
‘Me(“EIRID”).DefaultValue = “””” & Me(“EIRID”).Value & “”””Exit_Candidates_Click:
Exit SubErr_Candidates_Click:
MsgBox Err.Description
Resume Exit_Candidates_Click
End Sub
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
89 million Steam account details just got leaked,
by
Alex5723
3 hours, 46 minutes ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
3 hours, 55 minutes ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
4 hours, 4 minutes ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
4 hours, 36 minutes ago -
Installer program can’t read my registry
by
Peobody
5 hours, 9 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
17 hours, 24 minutes ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
1 minute ago -
False error message from eMClient
by
WSSebastian42
15 hours, 3 minutes ago -
Awoke to a rebooted Mac (crashed?)
by
rebop2020
1 day ago -
Office 2021 Perpetual for Mac
by
rebop2020
1 day, 1 hour ago -
AutoSave is for Microsoft, not for you
by
Will Fastie
1 hour, 8 minutes ago -
Difface : Reconstruction of 3D Human Facial Images from DNA Sequence
by
Alex5723
1 day, 4 hours ago -
Seven things we learned from WhatsApp vs. NSO Group spyware lawsuit
by
Alex5723
5 hours, 53 minutes ago -
Outdated Laptop
by
jdamkeene
1 day, 10 hours ago -
Updating Keepass2Android
by
CBFPD-Chief115
1 day, 15 hours ago -
Another big Microsoft layoff
by
Charlie
1 day, 15 hours ago -
PowerShell to detect NPU – Testers Needed
by
RetiredGeek
18 hours, 47 minutes ago -
May 2025 updates are out
by
Susan Bradley
8 hours, 25 minutes ago -
Windows 11 Insider Preview build 26200.5600 released to DEV
by
joep517
1 day, 21 hours ago -
Windows 11 Insider Preview build 26120.3964 (24H2) released to BETA
by
joep517
1 day, 21 hours ago -
Drivers suggested via Windows Update
by
Tex265
1 day, 21 hours ago -
Thunderbird release notes for 128 esr have disappeared
by
EricB
1 day, 19 hours ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
2 days, 4 hours ago -
Apple releases 18.5
by
Susan Bradley
1 day, 22 hours ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
2 days, 5 hours ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
2 days, 6 hours ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
14 hours, 45 minutes ago -
No HP software folders
by
fpefpe
2 days, 14 hours ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
1 day, 11 hours ago -
Stay connected anywhere
by
Peter Deegan
2 days, 19 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.