VB6 Data Reporting Help Needed
Author |
Message |
Shan #1 / 7
|
 VB6 Data Reporting Help Needed
Hi there. Using Visual Basic 6, I want to have a report showing all the sales in various groups to make it easier to read. I would like to have the sales separated into the employee name (asc) and then by the date (desc). I have tried for ages to get this to work. I'm sure someone will be able to easily correct my errors in no time. The problem at the moment is that all sales are repeated for each date. Could you please have a look at it and see if you can get it working properly. You can download it from http://www.*-*-*.com/ , it's only 95kb. Thank you, Shane
|
Thu, 16 Sep 2004 19:28:33 GMT |
|
 |
Duane Hooko #2 / 7
|
 VB6 Data Reporting Help Needed
This question should be directed to a VB group. While many of us have experience with VB, we mostly avoid the native VB data reports. There is a news group microsoft.public.visualbasic.dataevnreport that might work for you. Duane
Quote: > Hi there. > Using Visual Basic 6, I want to have a report showing all the sales in > various groups to make it easier to read. I would like to have the sales > separated into the employee name (asc) and then by the date (desc). I have > tried for ages to get this to work. I'm sure someone will be able to easily > correct my errors in no time. > The problem at the moment is that all sales are repeated for each date. > Could you please have a look at it and see if you can get it working > properly. You can download it from > http://members.fortunecity.com/hypercharge/report.zip, it's only 95kb. > Thank you, > Shane
|
Fri, 17 Sep 2004 01:42:24 GMT |
|
 |
Calvin Smit #3 / 7
|
 VB6 Data Reporting Help Needed
Hi, I just took a quick look at your VB app, your Access2K tables/relationships, and your README.txt objective. Here's SQL from a query I tested on your tables that will work for that reporting objective: SELECT tblEmployees.ID, [FirstName] & Space(1) & [Surname] AS EmployeeFullName, tblSales.RecordDate, tblSales.Products, tblSales.SellPrice, tblCustomers.Customer FROM tblCustomers RIGHT JOIN (tblEmployees LEFT JOIN tblSales ON tblEmployees.ID = tblSales.NameID) ON tblCustomers.ID = tblSales.CustomerID GROUP BY tblEmployees.ID, [FirstName] & Space(1) & [Surname], tblEmployees.Surname, tblSales.RecordDate, tblSales.Products, tblSales.SellPrice, tblCustomers.Customer ORDER BY tblEmployees.Surname, tblSales.RecordDate DESC; ...OR your rptAllSales grouping should match the above grouping/sorting. -- Calvin Smith http://www.CalvinSmithSoftware.com "Real-world Source Code Solutions" *** http://www.CalvinSmithSoftware.com/CalvinSmithDoesWebsites.htm ***
Quote: > Hi there. > Using Visual Basic 6, I want to have a report showing all the sales in > various groups to make it easier to read. I would like to have the sales > separated into the employee name (asc) and then by the date (desc). I have > tried for ages to get this to work. I'm sure someone will be able to easily > correct my errors in no time. > The problem at the moment is that all sales are repeated for each date. > Could you please have a look at it and see if you can get it working > properly. You can download it from > http://members.fortunecity.com/hypercharge/report.zip, it's only 95kb. > Thank you, > Shane
|
Fri, 17 Sep 2004 07:21:41 GMT |
|
 |
Shan #4 / 7
|
 VB6 Data Reporting Help Needed
Thanks for your reply, I tested it and it worked. Although, it isn't quite what I was looking for. If you looked at the "test" report I created I had the user name only show up once, then all sales grouped under each date instead of the date being displayed for each sale. Is it possible to do this without it being repeated. I'm sure it is easy to do, I just don't know how. Cheers, Shane
Quote: > Hi, > I just took a quick look at your VB app, your Access2K
tables/relationships, Quote: > and your README.txt objective. > Here's SQL from a query I tested on your tables that will work for that > reporting objective: > SELECT tblEmployees.ID, [FirstName] & Space(1) & [Surname] AS > EmployeeFullName, tblSales.RecordDate, tblSales.Products, > tblSales.SellPrice, tblCustomers.Customer > FROM tblCustomers RIGHT JOIN (tblEmployees LEFT JOIN tblSales ON > tblEmployees.ID = tblSales.NameID) ON tblCustomers.ID = tblSales.CustomerID > GROUP BY tblEmployees.ID, [FirstName] & Space(1) & [Surname], > tblEmployees.Surname, tblSales.RecordDate, tblSales.Products, > tblSales.SellPrice, tblCustomers.Customer > ORDER BY tblEmployees.Surname, tblSales.RecordDate DESC; > ...OR your rptAllSales grouping should match the above grouping/sorting. > -- > Calvin Smith > http://www.CalvinSmithSoftware.com > "Real-world Source Code Solutions" > *** http://www.CalvinSmithSoftware.com/CalvinSmithDoesWebsites.htm ***
> > Hi there. > > Using Visual Basic 6, I want to have a report showing all the sales in > > various groups to make it easier to read. I would like to have the sales > > separated into the employee name (asc) and then by the date (desc). I have > > tried for ages to get this to work. I'm sure someone will be able to > easily > > correct my errors in no time. > > The problem at the moment is that all sales are repeated for each date. > > Could you please have a look at it and see if you can get it working > > properly. You can download it from > > http://members.fortunecity.com/hypercharge/report.zip, it's only 95kb. > > Thank you, > > Shane
|
Fri, 17 Sep 2004 09:00:49 GMT |
|
 |
Shan #5 / 7
|
 VB6 Data Reporting Help Needed
Yeah, I know this isn't the best news group to post this message, but I didn't know of any others. Thanks for the tip.
Quote: > This question should be directed to a VB group. While many of us have > experience with VB, we mostly avoid the native VB data reports. There is a > news group microsoft.public.visualbasic.dataevnreport that might work for > you. > Duane
|
Fri, 17 Sep 2004 09:03:20 GMT |
|
 |
Calvin Smit #6 / 7
|
 VB6 Data Reporting Help Needed
You're welcome! :-) Yes, in report design, you'll want to have an ID Header (Keep Together) and place your EmployeeFullName in that section, a RecordDate Header and place your RecordDate in that section, and lastly, place everything else that you want to see in the Detail section. -- Calvin Smith http://www.CalvinSmithSoftware.com "Real-world Source Code Solutions" *** http://www.CalvinSmithSoftware.com/CalvinSmithDoesWebsites.htm ***
Quote: > Thanks for your reply, I tested it and it worked. > Although, it isn't quite what I was looking for. If you looked at the "test" > report I created I had the user name only show up once, then all sales > grouped under each date instead of the date being displayed for each sale. > Is it possible to do this without it being repeated. I'm sure it is easy to > do, I just don't know how. > Cheers, > Shane
> > Hi, > > I just took a quick look at your VB app, your Access2K > tables/relationships, > > and your README.txt objective. > > Here's SQL from a query I tested on your tables that will work for that > > reporting objective: > > SELECT tblEmployees.ID, [FirstName] & Space(1) & [Surname] AS > > EmployeeFullName, tblSales.RecordDate, tblSales.Products, > > tblSales.SellPrice, tblCustomers.Customer > > FROM tblCustomers RIGHT JOIN (tblEmployees LEFT JOIN tblSales ON > > tblEmployees.ID = tblSales.NameID) ON tblCustomers.ID = > tblSales.CustomerID > > GROUP BY tblEmployees.ID, [FirstName] & Space(1) & [Surname], > > tblEmployees.Surname, tblSales.RecordDate, tblSales.Products, > > tblSales.SellPrice, tblCustomers.Customer > > ORDER BY tblEmployees.Surname, tblSales.RecordDate DESC; > > ...OR your rptAllSales grouping should match the above grouping/sorting. > > -- > > Calvin Smith > > http://www.CalvinSmithSoftware.com > > "Real-world Source Code Solutions" > > *** http://www.CalvinSmithSoftware.com/CalvinSmithDoesWebsites.htm ***
> > > Hi there. > > > Using Visual Basic 6, I want to have a report showing all the sales in > > > various groups to make it easier to read. I would like to have the sales > > > separated into the employee name (asc) and then by the date (desc). I > have > > > tried for ages to get this to work. I'm sure someone will be able to > > easily > > > correct my errors in no time. > > > The problem at the moment is that all sales are repeated for each date. > > > Could you please have a look at it and see if you can get it working > > > properly. You can download it from > > > http://members.fortunecity.com/hypercharge/report.zip, it's only 95kb. > > > Thank you, > > > Shane
|
Fri, 17 Sep 2004 17:17:28 GMT |
|
 |
Calvin Smit #7 / 7
|
 VB6 Data Reporting Help Needed
Actually, this can be classified as an Access related issue too considering that's your backend. I don't think you wrote that in your original post. -- Calvin Smith http://www.CalvinSmithSoftware.com "Real-world Source Code Solutions" *** http://www.CalvinSmithSoftware.com/CalvinSmithDoesWebsites.htm ***
Quote: > Yeah, I know this isn't the best news group to post this message, but I > didn't know of any others. > Thanks for the tip.
> > This question should be directed to a VB group. While many of us have > > experience with VB, we mostly avoid the native VB data reports. There is a > > news group microsoft.public.visualbasic.dataevnreport that might work for > > you. > > Duane
|
Fri, 17 Sep 2004 17:22:11 GMT |
|
|
|