Click here to Skip to main content
15,907,183 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: cut print tasks Pin
_Damian S_20-Sep-10 20:47
professional_Damian S_20-Sep-10 20:47 
GeneralRe: cut print tasks Pin
JR21220-Sep-10 20:52
JR21220-Sep-10 20:52 
Questionchange databases Pin
Member 320653117-Sep-10 12:49
Member 320653117-Sep-10 12:49 
AnswerRe: change databases Pin
Henry Minute17-Sep-10 14:29
Henry Minute17-Sep-10 14:29 
GeneralRe: change databases Pin
Member 320653117-Sep-10 16:42
Member 320653117-Sep-10 16:42 
QuestionDefault Formatting for Cells (Excel 2003) Pin
Win32SF17-Sep-10 11:03
Win32SF17-Sep-10 11:03 
AnswerRe: Default Formatting for Cells (Excel 2003) Pin
DaveAuld20-Sep-10 10:33
professionalDaveAuld20-Sep-10 10:33 
Questiondatabase linking in vb.net Pin
Member 320653117-Sep-10 9:05
Member 320653117-Sep-10 9:05 
I am new to vb.net and am having a problem getting data into a database

On a form I have a main database with dataset/bindingsouce/dataview with all of the students appearing correctly
Now ive created a new dataset/bindingsource/dataview which needs to be populated with other classtime information once a student is selected from the main database. Currently the code directs to the GetClassTime once a student is selected from the bindingsource.

HERE IS MY CODE
private sub GetClassTime()
Dim sQuery As String = ""
sQuery = "SELECT [Description],[Lesson], [Location], [StudentID], [CourseCode] From [ClassTime] Where ((([StudentID]) = " & Val(txtStudentID.Text) & ")) And (([CourseCode]) = " & Val(txtCourseCode.Text) & ") ORDER BY [Description];"

bindingsource_Classtime.DataSource = sQuery
Me.DataGridView_Classroom.DataSource = Me.BindingSource_Classtime

end sub

I dont get any errors but the datagridview_classroom is empty.
Can anybody please help?

Thanks in anticipation.
timark2000

AnswerRe: database linking in vb.net Pin
Henry Minute17-Sep-10 10:22
Henry Minute17-Sep-10 10:22 
GeneralRe: database linking in vb.net Pin
Member 320653117-Sep-10 16:42
Member 320653117-Sep-10 16:42 
GeneralRe: database linking in vb.net Pin
Henry Minute17-Sep-10 23:45
Henry Minute17-Sep-10 23:45 
GeneralRe: database linking in vb.net Pin
Luc Pattyn18-Sep-10 2:27
sitebuilderLuc Pattyn18-Sep-10 2:27 
GeneralRe: database linking in vb.net Pin
Henry Minute18-Sep-10 3:29
Henry Minute18-Sep-10 3:29 
QuestionConverting VB's IIf to Conditional Operator in c# Pin
Michael900016-Sep-10 23:30
Michael900016-Sep-10 23:30 
AnswerRe: Converting VB's IIf to Conditional Operator in c# Pin
Geoff Williams17-Sep-10 1:44
Geoff Williams17-Sep-10 1:44 
GeneralRe: Converting VB's IIf to Conditional Operator in c# Pin
Michael900017-Sep-10 2:57
Michael900017-Sep-10 2:57 
GeneralRe: Converting VB's IIf to Conditional Operator in c# Pin
Eddy Vluggen17-Sep-10 7:17
professionalEddy Vluggen17-Sep-10 7:17 
GeneralRe: Converting VB's IIf to Conditional Operator in c# Pin
Michael900017-Sep-10 23:20
Michael900017-Sep-10 23:20 
Questionbinding strongly typed objectresult to combobox vb.net 2010 Pin
Ebube16-Sep-10 22:01
Ebube16-Sep-10 22:01 
Questionsteppermotor Pin
nisharkinoo16-Sep-10 8:44
nisharkinoo16-Sep-10 8:44 
AnswerRe: steppermotor Pin
LloydA11116-Sep-10 8:52
LloydA11116-Sep-10 8:52 
AnswerRe: steppermotor Pin
David Mujica16-Sep-10 9:09
David Mujica16-Sep-10 9:09 
AnswerRe: steppermotor Pin
Ian Shlasko16-Sep-10 9:13
Ian Shlasko16-Sep-10 9:13 
AnswerRe: steppermotor Pin
Luc Pattyn16-Sep-10 9:44
sitebuilderLuc Pattyn16-Sep-10 9:44 
AnswerRe: steppermotor Pin
Eddy Vluggen16-Sep-10 9:58
professionalEddy Vluggen16-Sep-10 9:58 

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.