make a datareport with condition

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: make a datareport with condition

 
0
  #11
Nov 18th, 2008
Hi,

For Numeric(Long)
adBigInt, Long

For Text :
adVarChar, String

Regards
Veena
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 7
Reputation: denine is an unknown quantity at this point 
Solved Threads: 1
denine denine is offline Offline
Newbie Poster

Re: make a datareport with condition

 
0
  #12
Nov 18th, 2008
hello abu,
pls try this code if this will work.

("Select * from TableName where IDate <= cDate (' " & CStr(DTPicker1.Value) & " ') and IDate >= cDate(' " & CStr(DTPicker2.Value) & " ')")

or
If DTPicker1.Value <= !IDate And DTPicker2.Value >= !IDate Then


Regards,

denine
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 498
Reputation: abu taher is an unknown quantity at this point 
Solved Threads: 25
abu taher's Avatar
abu taher abu taher is offline Offline
Posting Pro in Training

Re: make a datareport with condition

 
0
  #13
Nov 19th, 2008
Dear veena
I have a problem. I write code in sql like
select * from table1
so all field show. help me what I write for particular field. I write....
select Student name from table1
what I write? some time parametre not show.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: make a datareport with condition

 
0
  #14
Nov 20th, 2008
Hi,

Yes, You can write all the field names from the table...
eg:

Select EmpID,EmpName From EmpMas Where EmpID = ?

Regards
Veena
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 498
Reputation: abu taher is an unknown quantity at this point 
Solved Threads: 25
abu taher's Avatar
abu taher abu taher is offline Offline
Posting Pro in Training

Re: make a datareport with condition

 
0
  #15
Nov 20th, 2008
I write like you but no field show but parametre was shown. If i write only this
select * from table1
then show all fields. but when I write your past code it was worked.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 498
Reputation: abu taher is an unknown quantity at this point 
Solved Threads: 25
abu taher's Avatar
abu taher abu taher is offline Offline
Posting Pro in Training

Re: make a datareport with condition

 
0
  #16
Dec 6th, 2008
Please any body help me.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 498
Reputation: abu taher is an unknown quantity at this point 
Solved Threads: 25
abu taher's Avatar
abu taher abu taher is offline Offline
Posting Pro in Training

Re: make a datareport with condition

 
0
  #17
Dec 14th, 2008
anybody help me please
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: make a datareport with condition

 
0
  #18
Dec 15th, 2008
Hi,

Post your SQL statement here..

Regards
Veena
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 498
Reputation: abu taher is an unknown quantity at this point 
Solved Threads: 25
abu taher's Avatar
abu taher abu taher is offline Offline
Posting Pro in Training

Re: make a datareport with condition

 
0
  #19
Dec 18th, 2008
SELECT * FROM incomereport WHERE AccountinfoDate AND IncomeDate BETWEEN ? AND ?

1st I write this code and it work after I write for other

SELECT Student ID, Student Name, Jamat Name, Feeding Charge,
Exam Fee, Roll No, Jamat Fee, Others Fee, AccountinfoDate,
Father 's Name,Category,Contact No,Address,Admission Date From stdreport Where Student ID ?
this code not work.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 498
Reputation: abu taher is an unknown quantity at this point 
Solved Threads: 25
abu taher's Avatar
abu taher abu taher is offline Offline
Posting Pro in Training

Re: make a datareport with condition

 
0
  #20
Jan 2nd, 2009
anybody can help me with this thread please
I like sword. Attack or Defense.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the Visual Basic 4 / 5 / 6 Forum


Views: 3477 | Replies: 27
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC