| | |
showing specific records using vb6 datareport
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: May 2008
Posts: 47
Reputation:
Solved Threads: 1
in ms access design your query in design view add your table into the query window and than double click on the fields which you may need for the query like fees of the student and in the criteria row just write the condition < 2000 under the fees column and than save and run the query hope this will help if not just let us know...
thank you
thank you
Right-Click Command Object (Say Command1)
Edit your Command's SQL Query and
make it :
Click on apply
Parameter Tab Is Enabled, Go there..
Set these properties for both Parameters:
DataType = adDoble
HostDataType =Currency
And Apply,
Save the Project
In The Calling Form, For <2000 buttonClick, write this code:
In The Calling Form, For between 2000 to 10000 buttonClick, write this code:
I HOPE IT IS CLEAR..
Regards
Veena
Edit your Command's SQL Query and
make it :
vb Syntax (Toggle Plain Text)
Select * From MyTable Where Fees Between ? And ?
Parameter Tab Is Enabled, Go there..
Set these properties for both Parameters:
DataType = adDoble
HostDataType =Currency
And Apply,
Save the Project
In The Calling Form, For <2000 buttonClick, write this code:
vb Syntax (Toggle Plain Text)
Load DataEnvironment1 With DataEnvironment1 If .rsCommand1.State <> 0 Then .rsCommand1.Close .Command1 0, 2000 End With DataReport1.Show
In The Calling Form, For between 2000 to 10000 buttonClick, write this code:
vb Syntax (Toggle Plain Text)
Load DataEnvironment1 With DataEnvironment1 If .rsCommand1.State <> 0 Then .rsCommand1.Close .Command1 2001, 10000 End With DataReport1.Show
I HOPE IT IS CLEAR..
Regards
Veena
![]() |
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: report format problem.. database design
- Next Thread: some help
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





