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 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
Jump to PostHi,
Yes, You can write all the field names from the table...
eg:Select EmpID,EmpName From EmpMas Where EmpID = ?
Regards
Veena
Jump to PostHi,
Post your SQL statement here..
Regards
Veena
Jump to PostHi,
Change your where condition to :
Where [Student ID] = ?
Similarly, in the sql statement, enclose all field names with square brackets, or remove Space from field names :
SELECT [Student ID], [Student Name]...
Also, remove Single Quote from Fieldname "Father's name"
…
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.