-
WSRainyCity4
AskWoody LoungerAll righty. Here’s the snippet.
Private Sub Report_Close()
DoCmd.RunSQL “INSERT INTO tblPrintedReports ( ClientID )” & _
“SELECT First(LogNotesQry.[Client ID]) AS [FirstOfClient ID]” & _
“FROM LogNotesQry”DoCmd.SetWarnings False
End Sub
After I posted the question about SetWarnings, I read the help file again and realized that I had used 0 instead of FALSE so I changed that and it worked perfectly.
-
WSRainyCity4
AskWoody LoungerJust an update…
I decided to use RunSQL code because I didn’t want to open Append Query window each time the report closes. However, there are two new issues:
1) Since I use a parameter query to ask the user for the name of person that the user want to see log notes for. Now, each time I close the report, it asks me for the name of client. As far as I can tell, it is because I am using Append query based on the parameter query that I’m using to filter the reports on. How do I tell RunSQL to extract the name from the report itself so that it wouldn’t ask me for name again after closing?
2) It warns me that it would ‘append’ one new record to the table. I want to turn off this warning and it seems like using DoCmd.SetWarning 0 doesn’t work.
TIA
-
WSRainyCity4
AskWoody LoungerI’d need the report to append after printing. I’ll try both options and see which works the best.
By the way, I found this article in Microsoft KB: Q154894 that does practically the same thing for Access 97. I tried it out and it worked great, however, it only enters the name of the report. I’d love to modify that code to also enter the specific PERSON the log notes is for (In my report, there is a “field” that prints name of person). Do you want me to attach the code that is listed in that article if you think it would be a better way of doing it?
TIA again.
-
WSRainyCity4
AskWoody LoungerCharlotte, how do you automatically run an action query after printing a report? I have an append query that does exactly what I need it to do. However, I’m not sure how do I tell the report to run the Append query?
Secondly, do I add the log table to the query I use to prepare the Log Notes report in order to limit the records to those that has not been entered into the log?
-
WSRainyCity4
AskWoody LoungerThanks for your help. I’ll try that.
-
WSRainyCity4
AskWoody LoungerThanks for your suggestion. How do I get this information entered into the table automatically?
Mark, thanks for the warning, I believe in my situation, it isn’t mandatory that the method to be foolproof. As long as it works most of the time, it will do. Grin.
-
WSRainyCity4
AskWoody LoungerJuly 10, 2001 at 9:17 pm in reply to: Attaching doc to Email using hyperlink (Word 2000/SR1) #532585Yeah, I could use a button. Now, I need to figure out how to automatically insert the email address the form is supposed to be sent to. We wanted to prevent people from typing wrong Email address in the TO field.
Brent
-
WSRainyCity4
AskWoody LoungerExactly what I needed. Thanks.
-
WSRainyCity4
AskWoody LoungerSorry, our network connection went down for 24 hours. Just got back the access…
I checked the computer, it was running Service Pack 1 so I applied SP 2 and got some strange behavior, especially when it restarted, all I got was blank screen (on the desktop) and was forced to CRTL+ALT+DEL and log out which finally kicked it into desktop. Searching for files is still extremely slow and now we are receiving an error message that “CSC Notifications Window” is not ending properly whenever we log out or shut down Windows? Anyone recognize this?
Brent
-
WSRainyCity4
AskWoody LoungerThanks! It did the trick.
Brent
-
WSRainyCity4
AskWoody LoungerMy apologies for not replying any sooner. I was out for 4 days for the Memorial’s weekend…
SteveH: Your tip helped immensely! That was exactly what I needed. I never knew about manipulating indexes. Simply amazing.
For rest of you: I really appreciate your feedback and input. Most of you warned me about duplicate names, different person scenario. I’ve decided to add birthdate to the multiple index that SteveH suggested. The odds of person having exact same name and birthdate is astronomical. Since the mailing list only has 1,000 names and I don’t believe it will even hit 1,500 next 5 years, especially when we prune it every year, I don’t believe we will run into duplicate name, birthdate and different persons. grin.
Again, I appreciate your time and effort in helping me.
-
WSRainyCity4
AskWoody LoungerAhhh…Welcome to the intrigue of my database world here at Lighthouse. Smile.
I had originally put the application status in the applicant’s table but problem is that not all applicants actually applied for the camp since the applicants comes from mailing list. So, I moved it to Camper table and Volunteer table, had problems with using Union Query in order to combine three different tables (Campers, Volunteers and Easy Volunteers, don’t ask what it means…grin). I simply found it much easier to set up a separate table that held application status. It’s working real well.
-
WSRainyCity4
AskWoody LoungerThanks to everyone for their help. I appreciate it!
-
WSRainyCity4
AskWoody LoungerYou didn’t miss anything here.
This table has unique ID using AutoNumber and Index set to Indexed (No Duplicate) but if an user adds a new person, the table automatically creates a new ID number which unfortunately, is different from the old record which has the exact same person.
-
WSRainyCity4
AskWoody LoungerI haven’t met a John Smith myself either.
I’ll try it again…What I didn’t mention was that I actually set it to “triple key” (ParticipantID, LastName and FirstName) Would this have made it happen that way?
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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
-
Updating Windows 10 to Windows 11: 23H2 or 24H2?
by
Still Anonymous
1 hour, 57 minutes ago -
How can I update “Explorer Patcher”
by
WSplanckster
3 hours, 50 minutes ago -
Check out the home page for Signal
by
CAS
1 hour, 42 minutes ago -
Windows 11 and Trial version of MS Office
by
Tex265
46 minutes ago -
Windows 11 Insider Preview build 26120.3585 (24H2) released to BETA
by
joep517
8 hours, 13 minutes ago -
Windows 11 Insider Preview build 26200.5510 released to DEV
by
joep517
8 hours, 17 minutes ago -
Windows 11 Insider Preview Build 26100.3624 (24H2) released to Release Preview
by
joep517
8 hours, 20 minutes ago -
Limits on User Names
by
CWBillow
5 hours, 3 minutes ago -
MS-DEFCON 4: Mixed bag for March
by
Susan Bradley
42 minutes ago -
Non Apple Keyboards
by
pmcjr6142
2 hours, 25 minutes ago -
How to delete your 23andMe data – The Verge
by
AJNorth
3 hours ago -
7 common myths about Windows 11 (Microsoft AD)
by
EyesOnWindows
36 minutes ago -
Error updating to Win11 0x8024a205
by
bmeacham
1 day, 2 hours ago -
default apps
by
chasfinn
1 day, 2 hours ago -
Will MS Works 4 work in MS Win 11?
by
MileHighFlyer
1 day, 10 hours ago -
Adding links to text in Word 2000
by
sgeneris
7 hours, 16 minutes ago -
FBI warnings are true—fake file converters do push malware
by
Nibbled To Death By Ducks
1 day, 3 hours ago -
Classic and Extended Control Panel — no need to say goodbye
by
Deanna McElveen
5 hours, 59 minutes ago -
Things you can do in 2025 that you couldn’t do in 2024
by
Max Stul Oppenheimer
1 day, 14 hours ago -
Revisiting Windows 11’s File Explorer
by
Will Fastie
23 hours, 35 minutes ago -
Planning ahead for migration
by
Susan Bradley
18 hours, 34 minutes ago -
Yahoo mail getting ornery
by
Tom in Az
1 day, 2 hours ago -
Is Spectrum discontinuing email service?
by
Peobody
1 day, 5 hours ago -
Practice what you preach! A cautionary tale.
by
RetiredGeek
1 day, 2 hours ago -
Looking for Microsoft Defender Manuals/Tutorial
by
blueboy714
1 day, 6 hours ago -
Win 11 24H2 Home or Pro?
by
CWBillow
1 day, 3 hours ago -
Bipartisan Effort to Sunset the ‘26 Words That Created the Internet’..
by
Alex5723
3 days, 12 hours ago -
Outlook new and edge do not load
by
cHJARLES a pECKHAM
4 days ago -
Problem using exfat drives for backup
by
Danmc
4 days, 1 hour ago -
I hate that AI is on every computer we have!
by
1bumthumb
3 days, 3 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.