Click here to Skip to main content
15,924,193 members

Comments by U_Hanisa (Top 100 by date)

U_Hanisa 16-Oct-14 17:47pm View    
Hye ChauhanAjay..please help me now. I'm copy this coding to my notebook. But when I debug, the query for the date become like this ""SELECT Row_Number() OVER(ORDER BY b.Date) AS ROWNUMBER, a.Name, b.MatricNo, b.Date, b.KaunselingID, b.Status " _
& "FROM DbStudent.dbo.SMP01_Personal AS a " _
& "INNER JOIN dbo.Kaunseling AS b ON a.MatricNo = b.MatricNo " _
& "WHERE Status = '2' And Date >= '1/8/2014' AND Date <= '31/8/2014'". Do you understand, so my query cannot read at sql server 'The conversion of a varchar data type to a smalldatetime data type resulted in an out-of-range value.' I don't know what is the problem because at my computer,it can run.
U_Hanisa 16-Oct-14 17:43pm View    
Hye ChauhanAjay..please help me now. I'm copy this coding to my notebook. But when I debug, the query for the date become like this ""SELECT Row_Number() OVER(ORDER BY b.Date) AS ROWNUMBER, a.Name, b.MatricNo, b.Date, b.KaunselingID, b.Status " _
& "FROM DbStudent.dbo.SMP01_Personal AS a " _
& "INNER JOIN dbo.Kaunseling AS b ON a.MatricNo = b.MatricNo " _
& "WHERE Status = '2' And Date >= '1/8/2014' AND Date <= '31/8/2014'". Do you understand, so my query cannot read at sql server 'The conversion of a varchar data type to a smalldatetime data type resulted in an out-of-range value.' I don't know what is the problem because at my computer,it can run.
U_Hanisa 14-Oct-14 22:33pm View    
TQ. ^_^
U_Hanisa 13-Oct-14 4:41am View    
Thank you. I'm a beginner of VB.Net, so I clueless about the coding. Can you give me the examples?
U_Hanisa 13-Oct-14 3:56am View    
Please check my updated code