| | |
Noob Needing Help with data report
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Sep 2007
Posts: 11
Reputation:
Solved Threads: 0
Hi! im a student needing help for my thesis project. im currently working on a supply chain management system.
i have created a sales form wherein you can input the customer order. adding the customer and product information and subtracting ordered product quantity works. im having problems with my report generation. im using odbc for connection and ms acccess. i created a data environment and connected it to my database. made something(sorry, im not good at programming) with sql builder.
after getting everything done with data environment, i dragged and dropped the fields to my data report, arranged everything and ran it. when i click the print cmdbutton to show the report, the report shows but there is nothing in it. so please please someone out there! please help! thanks!
Last edited by Carlo_g12; Sep 5th, 2007 at 6:07 am.
•
•
Join Date: Sep 2007
Posts: 11
Reputation:
Solved Threads: 0
You have a loosly worded problem. Hire a tutor for 2 hours and you'll have the answer quickly. It sounds like you do not getting a match between the tables you're trying to read. But if you don't understand SQL at all then you're in trouble from the start. The mentor on site is really what you need.
•
•
Join Date: Sep 2007
Posts: 11
Reputation:
Solved Threads: 0
•
•
•
•
You have a loosly worded problem. Hire a tutor for 2 hours and you'll have the answer quickly. It sounds like you do not getting a match between the tables you're trying to read. But if you don't understand SQL at all then you're in trouble from the start. The mentor on site is really what you need.
how about the data source and the data member have you already done with it? you must select the data source and the data member then right-click in your data report then select retrieved data then use your drag and drop hehehe hope it would help to you
A conclusion is the place where you got tired of thinking. http://www.martin2k.co.uk/forums/index.php?showforum=4
http://www.a1vbcode.com/a1vbcode/vbforums/Forum3-1.aspx
http://www.developerfusion.co.uk/for...orum&ForumID=4
•
•
Join Date: Aug 2007
Posts: 8
Reputation:
Solved Threads: 0
Hi.
Well, follow these steps:
As a tester,
from your data environment, create a new command (and name it cmTester) then set the properties.
The data properties table will appear. Select the tables from the database you wish to use (ie drag and drop) then save the changes you are making.
Then, add a new report and name it rptTest. Align the windows as vertically and close all the other windows you dont wish to use(ie the forms you dont wish to use as of that moment)
Then drag and drop the cmTester to the rptTest and align as you wish.
Then set the rptTest properties as follows:
- data source as the data environment (from a generated drop down combo)
- data member as cmTest
- save changes..
Then from the form you wish the report to be shown ie as per your case you are using a command button, go to the code option of that command button (ie cmdPrint) and write a one-line code to show the report you are generating. (in this case our report name is rptTest therefore the code you will write under the function cmdPrint.Click will be, rptTest.show
From that compile and the report will load data from the database ie also if the database has data....
Communicate if you still have a problem and i will attach a sample project for that contains all that.
Well, follow these steps:
As a tester,
from your data environment, create a new command (and name it cmTester) then set the properties.
The data properties table will appear. Select the tables from the database you wish to use (ie drag and drop) then save the changes you are making.
Then, add a new report and name it rptTest. Align the windows as vertically and close all the other windows you dont wish to use(ie the forms you dont wish to use as of that moment)
Then drag and drop the cmTester to the rptTest and align as you wish.
Then set the rptTest properties as follows:
- data source as the data environment (from a generated drop down combo)
- data member as cmTest
- save changes..
Then from the form you wish the report to be shown ie as per your case you are using a command button, go to the code option of that command button (ie cmdPrint) and write a one-line code to show the report you are generating. (in this case our report name is rptTest therefore the code you will write under the function cmdPrint.Click will be, rptTest.show
From that compile and the report will load data from the database ie also if the database has data....
Communicate if you still have a problem and i will attach a sample project for that contains all that.
•
•
Join Date: Sep 2007
Posts: 11
Reputation:
Solved Threads: 0
hi! i already checked the datassource and datamember. but still there's nothing when u run it. i added a label just to check if something come out. well, no problem with that. but to the items that i dragged and dropped, they display nothing when run.
still having a hard time with the reports. is there a possibility that the problem is in the table's relationship in the databes?
oh by the way, in this report i am using a query. sorry if i'm not making sense with the clues, i dont know where to start explaining so feel free to ask. hehe thanks jireh and lavendor!
still having a hard time with the reports. is there a possibility that the problem is in the table's relationship in the databes?
oh by the way, in this report i am using a query. sorry if i'm not making sense with the clues, i dont know where to start explaining so feel free to ask. hehe thanks jireh and lavendor!
![]() |
Similar Threads
- Data Report in vb 6.0 (Visual Basic 4 / 5 / 6)
- help me pls~~ data report data section does not match data source (Visual Basic 4 / 5 / 6)
- about data report (Visual Basic 4 / 5 / 6)
- Printing Data Report Directly in vb.net (VB.NET)
- Data report... (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: how to retrieve field names from access database
- Next Thread: trouble with vbscript connection to MSSQL
| 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







