I made a datareport simple. just connect. but I want to make it with condition. I have 2
dtpicker for date. I want 1 day report or weekly or monthly report by dtpicker. example
I want 03/11/08 report or 01/11/08 to 03/11/08 report. But I dont know how make it. Where I write code or how I collect it. Help me. I want I select a date from dtpicker or form both dtpicker and click a button then the report show.
abu taher
34
Practically a Posting Shark
Recommended Answers
Jump to Postyou need to frame the sql dynamically at runtime and pass the same to the report.
Jump to Posthi. you can write the query first. then i think you have to set the record source of your report
to the query you made.
Jump to Posthi. you try to make a query first.say
rs.Open "Select appdate, name from tablename where appdate between '" & date1 & "' AND '" & date2 & "'"
then set the record source of the report
Set repo.DataSource = rs repo.Title = "Hello" repo.Show
Jump to PostHi Abu,
Well... Follow these Steps:
Open a Data Project
Add a Connection Object (Configure to your database)
Add A Command Object (Say Command1) And Right-Click
Goto properties and Select Option SQL Statement and Type :
Select * From MyTable Where MyDate Between ? And ?
Click on Apply,
…
Jump to PostHi,
For Numeric(Long)
adBigInt, LongFor Text :
adVarChar, StringRegards
Veena
All 27 Replies
debasisdas
580
Posting Genius
Featured Poster
AUGXIS
1
Light Poster
abu taher
34
Practically a Posting Shark
AUGXIS
1
Light Poster
abu taher
34
Practically a Posting Shark
abu taher
34
Practically a Posting Shark
abu taher
34
Practically a Posting Shark
QVeen72
104
Posting Shark
abu taher
34
Practically a Posting Shark
QVeen72
104
Posting Shark
denine
0
Newbie Poster
abu taher
34
Practically a Posting Shark
QVeen72
104
Posting Shark
abu taher
34
Practically a Posting Shark
abu taher
34
Practically a Posting Shark
abu taher
34
Practically a Posting Shark
QVeen72
104
Posting Shark
abu taher
34
Practically a Posting Shark
abu taher
34
Practically a Posting Shark
QVeen72
104
Posting Shark
abu taher
34
Practically a Posting Shark
abu taher
34
Practically a Posting Shark
QVeen72
104
Posting Shark
jireh
3
Posting Whiz
abu taher
34
Practically a Posting Shark
abu taher
34
Practically a Posting Shark
abu taher
34
Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.