Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Macros

Former Member
0 Likes
412

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.

2 REPLIES 2
Read only

Former Member
0 Likes
384

Use of MAcros -

DEFINE fetch_data.

select * from mara into table &1 up to 20 rows.

END-OF-DEFINITION.

tables mara.

data: begin of itab occurs 0.

include structure mara.

data end of itab.

Fetch_data ITAB.

loop at itab.

write:/ itab-matnr.

endloop.

Read only

Former Member
0 Likes
384

Hi friends,

How to use a in operator instead fo a like operator in the sql statement.

Thanks,

Rajesh.