Hello,

I have a database and i'm using Excel for reporting from it with ODBC.
The database is connected with Excel and the connection it is in Data Source (named as "data").
I select the connection "data" then i have the sql statement:
## table 1 = TEAM ; field1 = GOALS ; field2 = DATE ;

Select Sum(TEAM.GOALS) As 'Goals'
From TEAM TEAM
Where TEAM.DATE between 'DATA1' and 'DATA2'


## DATA1 and DATA2 are two cells in current Worksheet. The dates are in cells A2 (data1) and A3 (data2).

I want to generate the report using the dates from cells A2 and A3 (the period of the report) and i don't know how to use cell values..

Can anyone help me pls?