-
WSFay Yocum
AskWoody LoungerHere is the stripped down version of the file. Click the 2007 button and then check the tblCompetencyResultYear table you will see that Emily Allen has Pressure Ulcer class listed twice, even though she only did it once. If you look at the strSQL query I put the SQL in question on a query grid so you could see the basics. Thank you for your help. This is driving me crazy.
Fay.
-
WSFay Yocum
AskWoody LoungerThanks that was what I figured you would say. Fay
-
WSFay Yocum
AskWoody LoungerHi Jerry thanks for responding. I am so shaky with SQL as it is. So trying to learn another version/approach is more than I have time for with my other responsibilities. But I do appreciate your response. Fay
-
WSFay Yocum
AskWoody LoungerGot the above problem working. Thank you very much. I now want to covert several queries to SQL, which I did, but… Two of them are select queries which the computer quickly responded with a Run-time error 2342. So I now know I can’t run a straight Select query, I need an action query. Here are the three different queries that I was trying to run. Because of the 2342 error message I tried to combine them, but that isn’t going to work. Because of trying to call strSQL2 in the strSQL3 query. Can you provide an approach? Other wise I will remain with the query grid and continue to clutter the database with queries. Thank you. Fay
strSQL1 = “SELECT tblClasses.ClassID, tblLearners.LearnerID FROM tblClasses, tblLearners ” & _
“WHERE (((tblClasses.ClassID)=116 Or (tblClasses.ClassID)=118 Or (tblClasses.ClassID)=123 ” & _
“Or (tblClasses.ClassID)=126 Or (tblClasses.ClassID)=133 Or (tblClasses.ClassID)=134 ” & _
“Or (tblClasses.ClassID)=135)) ”strSQL2 = “SELECT tblLearners.LearnerID, tblLearners.LastName, tblLearners.Nickname, ” & _
“tblLearners.Inactive, tblLearners.Credential, tblLearnerDepartments.PerDiem2Unit, ” & _
“tblLearnerDepartments.Status, tblLearnerDepartments.StartDate ” & _
“FROM tblLearners INNER JOIN tblLearnerDepartments ” & _
“ON tblLearners.LearnerID = tblLearnerDepartments.LearnerID ” & _
“WHERE (((tblLearners.Inactive)=0) AND ((tblLearnerDepartments.StartDate)<#1/1/2007#)) "strSQL3 = "SELECT strSQL1.LearnerID, strSQL1.ClassID, " & _
"strSQL2.LastName, strSQL2.Nickname, strSQL2.Inactive, strSQL2.Credential, " & _
"strSQL2.Status, tblClasses.ClassName, tblCompetencyResultYear.ISDateOfClassStart, " & _
"tblCompetencyResultYear.Grade, tblCompetencyResultYear.ProficiencyGrade " & _
"INTO tblCompetencyResultYear1 " & _
"FROM ((qryCompetenciesResult LEFT JOIN tblCompetencyResultYear " & _
"ON (qryCompetenciesResult.LearnerID = tblCompetencyResultYear.LearnerID) " & _
"AND (qryCompetenciesResult.ClassID = tblCompetencyResultYear.ClassID)) " & _
"INNER JOIN tblClasses ON qryCompetenciesResult.ClassID = tblClasses.ClassID) " & _
"INNER JOIN qryCompetencyResultsA ON qryCompetenciesResult.LearnerID = qryCompetencyResultsA.LearnerID " & _
"WHERE (((qryCompetencyResultsA.Inactive)=0) AND ((qryCompetencyResultsA.Credential)=""RN"" " & _
"Or (qryCompetencyResultsA.Credential)=""LPN""));" -
WSFay Yocum
AskWoody LoungerAfter playing with this all evening, I think I figured it out. I have to create a table. The make table query dumps the registrations files based on the limitations I set in the example in qryCompetencyResults1b. Then do what you told me to do from that new table.
Thank you. Fay
-
WSFay Yocum
AskWoody LoungerHi Hans. Thanks for the help. I got the basics to work see qryCompetencyResults1. The problem is that I need to put limitations on the results based on status and date of class, see qryCompetencyResults1a, it doesn’t work. Any thoughts? I took qryCompetencyResults1 and created another query and then put the limitations there. That didn’t work either, it limited to just the people that had completed the tests. see qryCompetencyResults1b.
See the attached file.
Thank you. Fay
-
WSFay Yocum
AskWoody LoungerThis is basically giving me the same results I had with the original query. If there are five tests I need each person’s name to show up and the five tests to be listed. If they have taken the test then there should be a grade and date. If they haven’t taken the test the test name is there but there is no grade. Thank you. Fay
SELECT tblClasses.ClassID, qryCompetencyResults1.PerDiem2Unit, qryCompetencyResults1.LearnerID, qryCompetencyResults1.LastName, qryCompetencyResults1.Nickname, qryCompetencyResults1.Credential, qryCompetencyResults1.Status, tblClasses.ClassName, qryCompetencyResults1.ISDateOfClassStart, qryCompetencyResults1.Grade, qryCompetencyResults1.ProficiencyGrade, qryCompetencyResults1.ProficiencyMethod
FROM tblClasses LEFT JOIN qryCompetencyResults1 ON tblClasses.ClassID = qryCompetencyResults1.ClassID
WHERE (((tblClasses.ClassName)=”Accu-Chek – 2007″)) OR (((tblClasses.ClassName)=”Code BLue – 2007″)) OR (((tblClasses.ClassName)=”IM Injection Test”)) OR (((tblClasses.ClassName)=”Perdiem Packet – 2007″)) OR (((tblClasses.ClassName)=”Pressure Ulcer – RN/LPNs – 2007″)) OR (((tblClasses.ClassName)=”Safety Fair Make-up”)) OR (((tblClasses.ClassName)=”Venipuncture Test and Proficiency”)); -
WSFay Yocum
AskWoody LoungerThank you Hans. This will get the job done.
I have not made major changes to this database for a long time and I think I lose all skills I have achieved from previous work. I appreciate the patience. Fay
-
WSFay Yocum
AskWoody LoungerYou were correct. Thank you. Fay
-
WSFay Yocum
AskWoody LoungerI will check tomorrow I am off site the rest of today. It is a possibility because the Control Toolbox has been on screen. Thanks. Fay
-
WSFay Yocum
AskWoody LoungerHere is the form. I am currently working with it on my laptop and it works. But the desktop doesn’t give me access to the protect button. Thanks for looking at it.
-
WSFay Yocum
AskWoody LoungerFrom the Forms toolbar.
-
WSFay Yocum
AskWoody LoungerThank you. Fay
-
WSFay Yocum
AskWoody LoungerI was kind of expecting some kind of answer like that. Back to the drawing board. At least I am just getting started with it. How are you envisioning the combo number for department and credentials. Create a separate table where I create the numbers for the department/credential combinations. Then link it to where I input learners. Is what I am hearing. Thanks for the information. Fay
-
WSFay Yocum
AskWoody LoungerHere is a stripped down version. It will come up showing the form where I input the different competencies and then assign to the department and to the credential levels. I started the query qryCompetenciesRequired, but it just selects the departments and names so far.
I need to show by departments (tblLearnerDepartment) assigned staff by name (tblLearner). Showing required competencies for each person based on their department and and credential level. Eventually I will then need to show their grade and date tested, but I need help on the step above.
tblCompetenciesDept holds the information from the subform.
tblRegIndepStudyLearner really addresses the last step, so I guess not needed here.Looking at the form you see that required for a credential level are marked with a check mark. If you look at the tblLearnerDept you will see that credentials is in a text field. I have to marry up the these two a yes for an RN should show up under all RN names.
I hope this helps. Thank you for looking at this. Fay
![]() |
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
-
Thunderbird release notes for 128 esr have disappeared
by
EricB
2 hours, 20 minutes ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
2 hours, 48 minutes ago -
Apple releases 18.5
by
Susan Bradley
3 hours, 7 minutes ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
4 hours, 14 minutes ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
4 hours, 51 minutes ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
11 hours, 48 minutes ago -
No HP software folders
by
fpefpe
12 hours, 33 minutes ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
4 hours, 45 minutes ago -
Stay connected anywhere
by
Peter Deegan
17 hours, 55 minutes ago -
Copilot, under the table
by
Will Fastie
9 hours, 9 minutes ago -
The Windows experience
by
Will Fastie
1 day ago -
A tale of two operating systems
by
Susan Bradley
15 hours, 6 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
1 day, 5 hours ago -
Where’s the cache today?
by
Up2you2
1 day, 20 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
1 day, 13 hours ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
13 hours, 55 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
1 day, 21 hours ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
2 days, 14 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
2 days, 14 hours ago -
regarding april update and may update
by
heybengbeng
2 days, 15 hours ago -
MS Passkey
by
pmruzicka
1 day, 17 hours ago -
Can’t make Opera my default browser
by
bmeacham
2 days, 23 hours ago -
*Some settings are managed by your organization
by
rlowe44
2 days, 10 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
2 days, 22 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
3 days, 17 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
4 days, 2 hours ago -
AI slop
by
Susan Bradley
1 day, 20 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
4 days, 4 hours ago -
Two blank icons
by
CR2
1 day, 12 hours ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 14 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.