Quantcast
Channel: SCN : Unanswered Discussions - Reporting and Printing
Viewing all articles
Browse latest Browse all 776

Get Date Parameters for Query from OINV

$
0
0

I want to prompt the user to select dates from the existing dates of the OINV file. I have tried this but get an error:

 

DECLARE @FromDate datetime, @ToDate datetime

 

SET @FromDate = (SELECT Min(DocDate) FROM OINV WHERE DocDate = '[%0]') 

SET @ToDate = (SELECT Min(DocDate) FROM OINV WHERE DocDate = '[%1]')

 

Any suggestions?


Viewing all articles
Browse latest Browse all 776

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>