Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem in DELPHI7 ti Crystal Reports 4.5 ...

Status
Not open for further replies.

maniakul

Programmer
Joined
Oct 18, 2005
Messages
8
Location
RO
Please how use BETWEEN in this script ?
1. DTPicker1 = from data
2. DTPicker2 = to data
/////////
procedure TForm3.Button3Click(Sender: TObject);
begin
With CRP1 do
begin connect := 'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=dbase.mdb;Persist Security Info=False;Pwd='+ 'system';
SelectionFormula = '{Total1.Data} BETWEEN'+ DTPicker1 to DTPicker2
ReportFileName := 'RPT.RPT';
WindowState := crptMaximized;
WindowTitle := 'REPORT';
Action := 1;
end;
end;
/////
Many thanks!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top