on 01-29-2007 6:18 AM
Hi all,
Iam using a sql statement to retrieve records for a particular period in macros.
My sql statement is as follows:
sSql = sSql & " WHERE (FKDAT Like '" & Sheet1.Cells(3, 2) & "%') " & vbCrLf 'Invoice Date
The from-date is in cell(3, 2) and the to-date In (3, 3). I able to use only one date.
Please help to me to get the correct statement,
Raj.
Message was edited by:
Rajesh Kumar
Hi Rajesh,
The macro should be :
where FKDAT >= Sheet1.Cells(3,2) AND FKDAT <=Sheet1.Cells(3,3)
i am ignorning the formatting assuming that you know it
Regards,
siddhesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.