Click here to Skip to main content
15,889,804 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how to create RDLC report using multiple sql columns with same values to count in vb.net Pin
DHARM PAL5-Feb-15 6:19
DHARM PAL5-Feb-15 6:19 
GeneralRe: how to create RDLC report using multiple sql columns with same values to count in vb.net Pin
Richard Deeming5-Feb-15 6:53
mveRichard Deeming5-Feb-15 6:53 
GeneralRe: how to create RDLC report using multiple sql columns with same values to count in vb.net Pin
DHARM PAL5-Feb-15 7:13
DHARM PAL5-Feb-15 7:13 
GeneralRe: how to create RDLC report using multiple sql columns with same values to count in vb.net Pin
Richard Deeming5-Feb-15 8:00
mveRichard Deeming5-Feb-15 8:00 
GeneralRe: how to create RDLC report using multiple sql columns with same values to count in vb.net Pin
DHARM PAL5-Feb-15 8:06
DHARM PAL5-Feb-15 8:06 
GeneralRe: how to create RDLC report using multiple sql columns with same values to count in vb.net Pin
Richard Deeming5-Feb-15 8:11
mveRichard Deeming5-Feb-15 8:11 
GeneralRe: how to create RDLC report using multiple sql columns with same values to count in vb.net Pin
DHARM PAL5-Feb-15 8:22
DHARM PAL5-Feb-15 8:22 
GeneralRe: how to create RDLC report using multiple sql columns with same values to count in vb.net Pin
Richard Deeming5-Feb-15 8:35
mveRichard Deeming5-Feb-15 8:35 
OK, change the query in the view to exclude empty subjects:
SQL
SELECT
    T.Course,
    S.subject,
    SUM(CASE T.Adcat WHEN 'Reg' THEN 1 ELSE 0 END) As Reg,
    SUM(CASE T.Adcat WHEN 'Pri' THEN 1 ELSE 0 END) As Pri
FROM
    YourTable As T
    CROSS APPLY
    (
        VALUES (sub1), (sub2), (sub3), (sub4), (sub5)
    ) As S (subject)
WHERE
    S.subject Is Not Null
And
    S.subject != ''
GROUP BY
    T.Course,
    S.subject
ORDER BY
    T.Course,
    S.subject
;




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: how to create RDLC report using multiple sql columns with same values to count in vb.net Pin
DHARM PAL5-Feb-15 9:09
DHARM PAL5-Feb-15 9:09 
GeneralRe: how to create RDLC report using multiple sql columns with same values to count in vb.net Pin
DHARM PAL5-Feb-15 20:44
DHARM PAL5-Feb-15 20:44 
GeneralRe: how to create RDLC report using multiple sql columns with same values to count in vb.net Pin
Richard Deeming6-Feb-15 2:03
mveRichard Deeming6-Feb-15 2:03 
GeneralRe: how to create RDLC report using multiple sql columns with same values to count in vb.net Pin
DHARM PAL6-Feb-15 2:48
DHARM PAL6-Feb-15 2:48 
QuestionHow To Start a Remote Desktop Connection to remote host from VB Pin
Member 111939643-Feb-15 4:57
Member 111939643-Feb-15 4:57 
AnswerRe: How To Start a Remote Desktop Connection to remote host from VB Pin
Eddy Vluggen3-Feb-15 7:23
professionalEddy Vluggen3-Feb-15 7:23 
QuestionA C# DLL produce error on VB.net project Pin
dilkonika2-Feb-15 8:12
dilkonika2-Feb-15 8:12 
AnswerRe: A C# DLL produce error on VB.net project Pin
Dave Kreskowiak2-Feb-15 8:24
mveDave Kreskowiak2-Feb-15 8:24 
GeneralRe: A C# DLL produce error on VB.net project Pin
dilkonika2-Feb-15 8:42
dilkonika2-Feb-15 8:42 
GeneralRe: A C# DLL produce error on VB.net project Pin
Richard Deeming2-Feb-15 8:58
mveRichard Deeming2-Feb-15 8:58 
GeneralRe: A C# DLL produce error on VB.net project Pin
dilkonika2-Feb-15 9:10
dilkonika2-Feb-15 9:10 
GeneralRe: A C# DLL produce error on VB.net project Pin
dilkonika2-Feb-15 9:14
dilkonika2-Feb-15 9:14 
GeneralRe: A C# DLL produce error on VB.net project Pin
dilkonika2-Feb-15 9:15
dilkonika2-Feb-15 9:15 
GeneralRe: A C# DLL produce error on VB.net project Pin
Richard Deeming2-Feb-15 9:29
mveRichard Deeming2-Feb-15 9:29 
GeneralRe: A C# DLL produce error on VB.net project Pin
dilkonika2-Feb-15 9:56
dilkonika2-Feb-15 9:56 
GeneralRe: A C# DLL produce error on VB.net project Pin
Richard Deeming2-Feb-15 10:05
mveRichard Deeming2-Feb-15 10:05 
GeneralRe: A C# DLL produce error on VB.net project Pin
dilkonika2-Feb-15 9:59
dilkonika2-Feb-15 9:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.