PDA

View Full Version : Print Report


ABC123

expollantas
09-10-2003, 05:04 AM
Hello ALL,

I need to print a report only the record entered as yes (exc="yes"), how can I add this to the button see attached,
thanks very much for your help
brgds,
Cesar



''XBasic
dim fdate as d
dim edate as d
dim lastbutton as c
dim checkbk as p
form.view("Date Dialog","dialog")
lastbutton=:Date_Dialog.last_pressed()
if lastbutton="OK_button" then
fdate=:Date_Dialog:Starting_Date.value
edate=:Date_Dialog:Ending_Date.value
end if
Date_Dialog.close()
if lastbutton="Cancel_button" then
end
end if
' else continue
:Report.Preview("Sumary Report","between(date,fdate,edate)")

Ohlen Cartmell
09-10-2003, 06:33 AM
Try

:Report.Preview("Sumary Report","between(date,fdate,edate).and.exec='yes'")