-
WSMS_fan
AskWoody LoungerIt is better now – however I can’t seem to make it work.
If Not rst2.BOF Then
rst2.MovePreviousOn MovePrevious – error no record.
Thanks
-
WSMS_fan
AskWoody LoungerI got it – removed!
However ‘too few parameters’ occures far before that at second line of below:strSQL2 = “SELECT * FROM GRADES WHERE ID=” & rst1!ID & ” ORDER BY Date”
Set rst2 = dbs.OpenRecordset(strSQL2, dbOpenDynaset)The Logic:
Find Max Date per ID and check the SalGrade.
Find Previous to the MaxDate and check IF SalGrade is different.
If so – write into table.It use to be
Find Action PRO per ID and check the SalGrade etc…Thanks for helping me. I am miffed because it works fine for the old Grade table with only difference that it has Action field.
What is wrong with my new one?
Maybe when it was looking for Action=PRO – it was looking at the single record, now it is grabbing whole bunch and says ‘too many – need 1’ – so this is why I want to have Max Date but it is not reading it right. -
WSMS_fan
AskWoody Lounger1 you have modify Date to Dates in the table Grades, but not in your code.
Done
2 you have comment out the line with rst2.findfirst and not those that follow with If rst2.NoMatch.
Done
3 In the Insert lines you have value rst2!Action that don’t exist.
What to do to correct it?
4 Did you remove the field Action it the table Grades
I did.Still get ‘too few parameters’ though…
Thanks -
WSMS_fan
AskWoody LoungerGot it – Zips only!!!!!
-
WSMS_fan
AskWoody LoungerI hoped you would ask
It seems I can’t upload 220KB database. Is there anything wrong with an upload feature?
Will try again. Thanks -
WSMS_fan
AskWoody LoungerID is numeric.
Now it says ‘too few parameters – need 1’ at the
Set rst2 = dbs.OpenRecordset(strSQL2, dbOpenDynaset)
line.Thanks
-
WSMS_fan
AskWoody LoungerNope! It says ‘no current record’.
I thought making it sort desc will not solve the issue because I will be still going up where there is no record.
Maybe I need to change dbOpenForwardOnly to something?Thanks
-
WSMS_fan
AskWoody LoungerWOW!
It is amazing!
Hans, how do you know all this???
I just told my boss it is impossible but I have last resort…THANKS SO MUCH
-
WSMS_fan
AskWoody LoungerI am sorry – I will try better.
Main report is as follows:
____________Report__NAME___________ xxx(Page Header)
________________________CityA__CityB__CityC___Totalxxx(Page Header)
Countryxxx(Group Header)___x_____x______x________x
Totalxxx(Group Footer)______x_____x______x________x
SUB Report1xxx(Report Footer)
Body of the Sub Report :
____________Report__NAME___________ xxx(Page Header)
_____________________Totalxxx(Page Header)
Citiesxx(Group Header)___x
Totalxxx(Group Footer)___x
_____________________________________________________
So the SUB Report is the summary of the Main.
It is one Report with 2 SUBs that are different cuts anf totals of the Main. -
WSMS_fan
AskWoody LoungerHere is what is happening.
Report has a Page Header:
____________Report__NAME___________
_____________ColA__ColB__ColC___Total
********Data etc….
Report_Footer has 2 SUB Reports with Page Headers:
____________Report__NAME___________
_____________CityColA__CityColB__CityColC___Total
********Data etc….
AND
____________Report__NAME___________
_____________SumColA__SumColB__SumColC___Total
********Data etc….
So – Report names are the same – headers for the column s are differentfor each.
When I am printing – Main Report’s Page Headers appearing on SUB Reports.
I had tried to set RH to Not with Rpt Hdr – this way nothing gets printed for SUBS.I am playing with different options and none seem works. I am sure I am overlooking one that is correct one.
I hope there is one, thank you.P.S. Desired outcome is each of 3 Reports showing same Report name and different headers per each. Every Report has more then 1 page. Thanks
-
WSMS_fan
AskWoody LoungerThanks, Hans, I did it and it works.
-
WSMS_fan
AskWoody LoungerSorry, it did, exactly! Thanks so much.
-
WSMS_fan
AskWoody LoungerMy apology, I was wrong. I forgot some conditions I had entered manually and it made your formula seems off.
How do I enter into conditional formatting that
If Name has + – color it green? What do I chose – Expression Is field or Field Value Is?Thanks so much and good week to all!!!
-
WSMS_fan
AskWoody LoungerThanks, it is awesome!
I want to report a slight problem.
The original query from Crystal looked like following:
if {TABLE1.FULL/PART TIME} = “F” and {TABLE1.Transfer} = 0 and {TABLE1.New Hire} = 0
then
{TABLE1.LAST NAME}& “,”& {TABLE1.FIRST NAME} & “-” &{TABLE1.SUB LOB}else if
{TABLE1.Transfer} = 0 and {TABLE1.New Hire} = 0
then
{TABLE1.LAST NAME}& “,”& {TABLE1.FIRST NAME}& ” (” & {TABLE1.FULL/PART TIME} &”) “& “- ” & {TABLE1.SUB LOB}else if
{TABLE1.New Hire} = 0 then
“~” & {TABLE1.LAST NAME}& “,”& {TABLE1.FIRST NAME} & “-” & {TABLE1.Prior SUB} & ” to ” & {TABLE1.SUB LOB}else
“+” &{TABLE1.LAST NAME}& “,”& {TABLE1.FIRST NAME} & ” (” & {TABLE1.FULL/PART TIME} &”) “& “- ” &{TABLE1.SUB LOB}************************************************************************
When we re-did it for the Access we lost else if and else and now I am getting records that are both – tilda and plus etc…
When I am using OR – it makes my names into -1 for some reason.
I think Crystal gets each part as a remander of the previous.
Like a cieve effect. It extracts following portion from left over data after first portion was extracted.
Am I confusing you completely? Sorry. -
WSMS_fan
AskWoody LoungerI have one more task to complete that is strange.
I need to color those names
those with tilda in front should be pink, those with plus sign – purple. Is it doable? Thanks
![]() |
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
-
24H2 may not be offered June updates
by
Susan Bradley
3 minutes ago -
Acronis : Tracking Chaos RAT’s evolution (Windows, Linux)
by
Alex5723
9 hours, 33 minutes ago -
Turning off OneDrive
by
CWBillow
14 hours, 3 minutes ago -
June 2025 updates are out
by
Susan Bradley
29 minutes ago -
Mozilla shutting Deep Fake Detector
by
Alex5723
1 day ago -
Windows-Maintenance-Tool (.bat)
by
Alex5723
9 hours, 42 minutes ago -
Windows 11 Insider Preview build 26200.5641 released to DEV
by
joep517
1 day, 2 hours ago -
Windows 11 Insider Preview build 26120.4250 (24H2) released to BETA
by
joep517
1 day, 2 hours ago -
Install Office 365 Outlook classic on new Win11 machine
by
WSrcull999
1 day, 2 hours ago -
win 10 to win 11 with cpu/mb replacement
by
aquatarkus
18 hours, 44 minutes ago -
re-install Windows Security
by
CWBillow
1 day, 6 hours ago -
WWDC 2025 Recap: All of Apple’s NEW Features in 10 Minutes!
by
Alex5723
1 day, 9 hours ago -
macOS Tahoe 26
by
Alex5723
1 day, 4 hours ago -
Migrating from win10 to win11, instructions coming?
by
astro46
2 hours, 53 minutes ago -
Device Eligibility for Apple 2026 Operating Systems due this Fall
by
PKCano
18 hours, 35 minutes ago -
Recommended watching : Mountainhead movie
by
Alex5723
19 hours, 19 minutes ago -
End of support for Windows 10
by
Old enough to know better
2 hours, 50 minutes ago -
What goes on inside an LLM
by
Michael Covington
13 hours, 28 minutes ago -
The risk of remote access
by
Susan Bradley
1 hour, 36 minutes ago -
The cruelest month for many Office users
by
Peter Deegan
1 day, 1 hour ago -
Tracking protection and trade-offs in Edge
by
Mary Branscombe
23 hours, 34 minutes ago -
Supreme Court grants DOGE access to confidential Social Security records
by
Alex5723
2 days, 8 hours ago -
EaseUS Partition Master free 19.6
by
Alex5723
1 day, 8 hours ago -
Microsoft : Edge is better than Chrome
by
Alex5723
2 days, 21 hours ago -
The EU launched DNS4EU
by
Alex5723
3 days, 10 hours ago -
Cell Phone vs. Traditional Touchtone Phone over POTS
by
280park
3 days ago -
Lost access to all my networked drives (shares) listed in My Computer
by
lwerman
3 days, 15 hours ago -
Set default size for pasted photo to word
by
Cyn
3 days, 21 hours ago -
Dedoimedo tries 24H2…
by
Cybertooth
3 days, 9 hours ago -
Windows 11 Insider Preview build 27871 released to Canary
by
joep517
4 days, 20 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.