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:
TomV
Past 24 Hours:
1
Prev. 24 Hours:
2
Overall:
5186
People Online:
Visitors:
240
Members:
0
Total:
240
Online Now:
New Topics
Lawson Landmark
LPL INSTR Functions
4/5/2024 8:32 PM
I'm writing a simple report using the Create R
Infor SCM
Translating 856 to get the ~ REF^CN^ field
4/3/2024 8:24 PM
We are trying to get the tracking number which is
IPA/ProcessFlow
Sample XML file create Flow
4/3/2024 3:43 PM
Hello everyone, I am new to creating XML files
Lawson S3 HR/Payroll/Benefits
bn105 error message
3/26/2024 6:40 PM
I need to change some of the set ups in our Life I
IPA/ProcessFlow
IPA executing Job
3/13/2024 7:08 PM
New to the IPA world and was wondering, can an IPA
Lawson S3 HR/Payroll/Benefits
Life Age Reduction on benefits plans
3/12/2024 7:15 PM
For our optional life we have an age based coverag
Lawson S3 HR/Payroll/Benefits
BN53.1 Add-In
3/7/2024 3:31 PM
We are migrating to Solstice. They require a
Lawson Business Intelligence/Reporting/Crystal
Domain Name Change
3/5/2024 7:45 PM
Our domain name needs to change and was hoping I c
S3 Customization/Development
Cobol calling Shell Script
2/29/2024 1:27 PM
Has anyone created or modified a Lawson Cobol prog
Infor ION
ION vs IPA
2/29/2024 1:24 AM
We had a person new to Lawson and Infor go to Info
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3288
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1348
Roger French
1311
mark.cook
1244
Forums
Unanswered
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Lawson Add-Ins for Microsoft Office
ERROR... can't use Selection Criteria...Related Table Fields and Parenthesis
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
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
stephanie
Veteran Member
Posts: 330
6/14/2010 12:53 PM
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
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!
stephanie
Veteran Member
Posts: 330
6/14/2010 1:12 PM
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
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
You are not authorized to post a reply.