Back to forum list… Back to How Do I?...

Filter by whether an Invoice date is between a specific start & end date (2 replies)

Arline Welty
9 years ago
Arline Welty 9 years ago

Hi all, Just looking for advice on dates:

The goal is to limit records to those where the AROBL.DATEINVC is between a Start Date (%PROSTART) and and end date (%PROEND) stored in an Excel spreadsheet.

All dates stored as YYYYMMDD right now.

Route 1 - based on p.6 of IMAN User Guide

Call these in VBScript Dimensions?

Dim PROSTART 

PROSTART = CDate(%PROSTART)

Dim PROEND

PROEND = CDate(%PROEND)

Dim DATEINVC 

DATEINVC = CDate(AROBL.DATEINVC)

If DATEINVC >= PROSTART And DATEINVC <= PROEND 

Dim DATEINVC

Route 2 : Create a Lookup and within that, try to filter using SQL:

WHERE Clause: AROBL.INVDATE BETWEEN ' "%PROSTART" and "%PROEND" '

Of course Route 2 is not using the CDate function.

Based on this post it seems like I will have to do that:

https://www.realisable.co.uk/sage-300/setting-posting-date-and-document-date-on-ar-invoice-creation/

Route 3: Filter results within a filter transform instead of within the Lookup definition?

Support
9 years ago
Support 9 years ago

Hi Arline,

I'd use a filter transform here:

DATEINVC >= CDate(%PROSTART) And DATEINVC <= CDate(%PROEND)

Please let me know if you have any issues.

Nick

8 years ago
Support 8 years ago

Closed due to inactivity.

Contact

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Request Demo

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Access Downloads

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close