-
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
-
MS Passkey
by
pmruzicka
1 hour, 37 minutes ago -
Can’t make Opera my default browser
by
bmeacham
3 hours, 31 minutes ago -
*Some settings are managed by your organization
by
rlowe44
1 hour, 24 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
2 hours, 25 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
22 hours, 7 minutes ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
1 day, 7 hours ago -
AI slop
by
Susan Bradley
1 day, 6 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
1 day, 8 hours ago -
Two blank icons
by
CR2
17 hours, 58 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 17 hours ago -
End of 10
by
Alex5723
1 day, 19 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
17 hours, 53 minutes ago -
test post
by
gtd12345
2 days, 2 hours ago -
Privacy and the Real ID
by
Susan Bradley
1 day, 16 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day, 8 hours ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
2 days, 6 hours ago -
Upgrading from Win 10
by
WSjcgc50
18 hours, 3 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
21 hours, 37 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
2 days, 22 hours ago -
The story of Windows Longhorn
by
Cybertooth
2 days, 9 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
2 days, 23 hours ago -
Are manuals extinct?
by
Susan Bradley
20 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
3 days, 9 hours ago -
Network Issue
by
Casey H
2 days, 20 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
3 days, 21 hours ago -
May 2025 Office non-Security updates
by
PKCano
3 days, 21 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
3 days, 23 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
3 days ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
4 days, 1 hour ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
4 days, 1 hour 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.