-
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?
![]() |
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
-
Shellbag Analyser & Cleaner Update
by
Microfix
27 seconds ago -
CISA warns of increased breach risks following Oracle Cloud leak
by
Nibbled To Death By Ducks
1 hour, 38 minutes ago -
Outlook 2024 two sent from email addresses
by
Kathy Stevens
5 hours, 41 minutes ago -
Speeding up 11’s search
by
Susan Bradley
12 hours, 53 minutes ago -
HP Pavilion Will Not Wake Up After Being Idle for Longer Period
by
WSwalterwood44
12 hours, 12 minutes ago -
Make a Windows 11 Local Account Passwordless
by
Drcard:))
15 hours, 39 minutes ago -
Ubuntu 25.04 (Plucky Puffin)
by
Alex5723
23 hours, 12 minutes ago -
24H2 fixed??
by
CWBillow
12 hours, 41 minutes ago -
Uninstalr Updates
by
jv16
1 day, 4 hours ago -
Apple zero days for April
by
Susan Bradley
9 hours, 3 minutes ago -
CVE program gets last-minute funding from CISA – and maybe a new home
by
Nibbled To Death By Ducks
1 hour, 55 minutes ago -
Whistleblower describes DOGE IT dept rumpus at America’s labor watchdog
by
Nibbled To Death By Ducks
2 days, 3 hours ago -
Seeing BSOD’s on 24H2?
by
Susan Bradley
1 day, 10 hours ago -
TUT For Private Llama LLM, Local Installation and Isolated from the Internet.
by
bbearren
1 day, 17 hours ago -
Upgrade from Windows 10 to 11
by
Holdsworth8
2 days, 11 hours ago -
Microsoft : AI-powered deception: Emerging fraud threats and countermeasures
by
Alex5723
2 days, 14 hours ago -
0patch
by
WSjcgc50
1 day, 15 hours ago -
Devices might encounter blue screen exception with the recent Windows updates
by
Susan Bradley
2 days, 7 hours ago -
Windows 11 Insider Preview Build 22631.5261 (23H2) released to Release Preview
by
joep517
2 days, 17 hours ago -
Problem opening image attachments
by
RobertG
2 days, 19 hours ago -
advice for setting up a new windows computer
by
routtco1001
3 days, 9 hours ago -
It’s Identity Theft Day!
by
Susan Bradley
11 hours, 32 minutes ago -
Android 15 require minimum 32GB of storage
by
Alex5723
3 days, 14 hours ago -
Mac Mini 2018, iPhone 6s 2015 Are Now Vintage
by
Alex5723
3 days, 14 hours ago -
Hertz says hackers stole customer credit card and driver’s license data
by
Alex5723
3 days, 15 hours ago -
Firefox became sluggish
by
Rick Corbett
1 day, 7 hours ago -
Windows 10 Build 19045.5794 (22H2) to Release Preview Channel
by
joep517
3 days, 19 hours ago -
Windows 11 Insider Preview Build 22635.5235 (23H2) released to BETA
by
joep517
3 days, 19 hours ago -
A Funny Thing Happened on the Way to the Forum
by
bbearren
2 days, 17 hours ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
3 hours, 46 minutes 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.