Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
User Experience
Lawson Add-Ins for Microsoft Office
ERROR... can't use Selection Criteria...Related Table Fields and Parenthesis
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Davido75
Past 24 Hours:
0
Prev. 24 Hours:
1
Overall:
5266
People Online:
Visitors:
255
Members:
0
Total:
255
Online Now:
New Topics
Lawson S3 Procurement
Tolerance Settings
3/31/2025 2:01 PM
I've been trying to set a tolerance for some t
Dealing with Lawson / Infor
Printing Solutions other than MHC
3/27/2025 1:00 PM
What are others using for printing solutions besid
Lawson S3 Procurement
Green check marks in Lawson 9.0.1
3/20/2025 4:55 PM
Hi, How to remove green check mark on items when o
Lawson S3 HR/Payroll/Benefits
Pay Rate History to Show All Positions
2/26/2025 3:34 PM
Does anyone know how to modify payratehistory.htm
Infor CloudSuite
How to build a Pre-Prod tenant
2/7/2025 1:28 AM
After we finished our implementation and ended our
Lawson S3 Procurement
Browser issue with RQC Shopping
1/28/2025 5:49 PM
Since the recent Chrome/Edge updates, our RQC shop
Lawson S3 Procurement
S3-Procurement New Company
1/22/2025 10:38 PM
My Accounting Department has created a new Company
S3 Customization/Development
JUSTIFIED RIGHT
1/15/2025 7:41 PM
Is there a way in Lawson COBOL to make a character
S3 Systems Administration
ADFS certificate - new cert
12/3/2024 9:38 PM
The certificates on the windows boxes expired and
Lawson S3 HR/Payroll/Benefits
Post Tax Benefit Plan Table
11/14/2024 9:16 PM
Hi, totally new to Laswon. I have a repor
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1375
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
User Experience
Lawson Add-Ins for Microsoft Office
ERROR... can't use Selection Criteria...Related Table Fields and Parenthesis
Please
login
to post a reply.
4 Replies
0
Subscribed to this topic
1 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
FireGeek21
Veteran Member
Posts: 84
6/14/2010 12:41 PM
Hi Everyone,
We are receiving the following error when attempting to create output using MS Addins:
ERROR. You cannot use Selection Criteria that contains both Related Table Fields and Parenthesis.
Not sure how to resolve this...
We are building output to include the following:
-Dependent's Name
-Benefit Plan Type (HL; DN)
-Benefit Start-Date
-Benefit Stop-Date
-Dependent's Relationship
-Dependent's Consent
-Employee's Date of Hire
-Employee's Name
-Employee's Company
The Start-Date needs to be >= 01/01/2010 and where we are putting () is with the Stop-Date:
(ISNULL(Stop-Date) or Stop-Date > CurrentDate)
Any idea on how to resolve this error?
Thank,
RSGeek
Deleted User
New Member
Posts: 0
6/14/2010 12:53 PM
Split
I literally just ran into that same error message 2 weeks ago, and assumed that it's one of those "hidden" limitations within the Add ins. Instead of using the parentheses, can you just put in "or" logic - your first grouping having stop date = blank, then the next grouping stop date > current date?
FireGeek21
Veteran Member
Posts: 84
6/14/2010 1:07 PM
Split
I figure I would have to somehow group the criteria considering I also need the Start-Date >= 01/01/2010. This is what I am picturing I have to do but am getting this error.
Start-Date >= 01/01/2010 AND
(IsNull(Stop-Date) or Stop-Date >= Current Date)
Aurgh!
Deleted User
New Member
Posts: 0
6/14/2010 1:12 PM
Split
Sorry I wasn't clear - I'm suggesting not using the grouping function, but using and/or -
Start date >01/01/2010 AND stop date = null
OR
start date > 01/01/2010 AND stop date > 06/14/2010
FireGeek21
Veteran Member
Posts: 84
6/14/2010 7:45 PM
Split
Thank you Stephanie for the suggestion. Here is the final result - and I was able to group!!!
((Start-Date >= 01/01/2010 AND
Stop-Date = 00000000)) OR
((Start-Date >= 01/01/2010 AND
Stop-Date >= 06/14/2010))
It appears the problem lied with the table I started with. MS Add-ins won't allow you to use any selection criteria against a "related" table, however you can against the table you start with. In the end, I started with the HRDEPEND table and related to EMPLOYEE and EMDEPEND. Originally I was starting with the EMDEPEND table and related to EMPLOYEE, HRDEPEND and BENEFIT - criteria against the HRDEPEND or the BENEFIT tables were not working.
All is better!!! Thanks again for the suggestion.
FireGeek
Please
login
to post a reply.