ODBC - passing parameter into flowfilter

smatijev
Member Posts: 12
When I want to set date flowfilter on Item table I have to make the following SQL query through Microsoft Query:
Problem is that I can't set this date range dynamically because when I try to replace string '010106..310106' with ? I get following error:
Parameters are not allowed in queries that can't be displayed graphically.
If I try this with "normal" field:
Any suggestions for some work-around :?:
SELECT Item.No_, Item.Description, Item."Sales (LCY)", Item."Sales (Qty_)" FROM Item Item WHERE {pred setflowfilter, 'Item', 'Date filter', '010106..310106'} ORDER BY Item.No_
Problem is that I can't set this date range dynamically because when I try to replace string '010106..310106' with ? I get following error:
Parameters are not allowed in queries that can't be displayed graphically.
If I try this with "normal" field:
SELECT Item.No_, Item.Description, Item."Sales (LCY)", Item."Sales (Qty_)" FROM Item Item WHERE (Item.No_=?) ORDER BY Item.No_then there isn't any problems and I can pass parameter from Excel to Microsoft query.
Any suggestions for some work-around :?:
0
Comments
-
Hi all,
Getting this same problem...
Does anyone have any ideas how to solve this or can point me to some resources where I can find out more about the "pred setflowfilter" mentioned?
Thanks,0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions