Click here to Skip to main content
15,918,808 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionabout TableLayoutPanel control in vb.net 2.0 Pin
vijaylumar16-Apr-08 22:11
vijaylumar16-Apr-08 22:11 
GeneralRe: about TableLayoutPanel control in vb.net 2.0 Pin
Ajay.k_Singh17-Apr-08 1:10
Ajay.k_Singh17-Apr-08 1:10 
Question[Message Deleted] Pin
r_williams_8416-Apr-08 21:33
r_williams_8416-Apr-08 21:33 
GeneralRe: DLL Registration Pin
Dave Kreskowiak17-Apr-08 3:24
mveDave Kreskowiak17-Apr-08 3:24 
GeneralRe: DLL Registration Pin
r_williams_8417-Apr-08 13:00
r_williams_8417-Apr-08 13:00 
QuestionSecurity Policy Pin
Tauseef A16-Apr-08 19:25
Tauseef A16-Apr-08 19:25 
GeneralRe: Security Policy Pin
Dave Kreskowiak17-Apr-08 3:22
mveDave Kreskowiak17-Apr-08 3:22 
GeneralProblems updating database Pin
AAGTHosting16-Apr-08 9:49
AAGTHosting16-Apr-08 9:49 
I added a student to the database when in debug mode, but when I exit out of debug mode and then go back into debug mode the new student record is not there.

Do you know why? Do I need to commit the changes to the database? I am using acceptChanges.

I also add lesson information for the student. When I try to add the lesson information it doesn't even add to the database. Why does the student add but not the lesson?

When I used a message box to display the lesson info it displayed.

Here is my code to add the student.

addRow = lpDataSet.tbl_students.Newtbl_studentsRow()
addRow("stud_name") = txtStudentName.Text
addRow("stud_par_name") = txtParentName.Text
addRow("stud_add") = txtStudAdd.Text
addRow("stud_unit_num") = txtAptNum.Text
addRow("stud_city") = txtCity.Text
addRow("stud_state") = txtState.Text
addRow("stud_zip") = Convert.ToInt32(txtZip.Text)
addRow("stud_email") = txtEmail.Text
addRow("stud_cell") = txtStudCell.Text
addRow("stud_phone") = txtStudPhone.Text
addRow("stud_status") = intStudStat
lpDataSet.tbl_students.Rows.Add(addRow)
studTableAdapter.Update(addRow)
lpDataSet.Tables("tbl_students").AcceptChanges()


Here is the code to add the lesson.

addRow = lpDataSet.tbl_lessons.Newtbl_lessonsRow()
addRow("less_instrument") = txtInstrument.Text
addRow("stud_id") = Convert.ToInt32(cboSelectStudent.SelectedValue)
addRow("less_start_date") = Convert.ToDateTime(dtpStartDate.Text)
addRow("less_end_date") = Convert.ToDateTime(dtpEndDate.Text)
addRow("less_time") = Convert.ToDateTime(lvwItem.SubItems(1).Text)
addRow("less_day") = intDay
addRow("teach_id") = Convert.ToInt32(cboSelectTeacher.SelectedValue)
addRow("less_status") = intLessStat
lpDataSet.tbl_lessons.Rows.Add(addRow)
lessonTableAdapter.Update(addRow)
lpDataSet.Tables("tbl_lessons").AcceptChanges()

GeneralRe: Problems updating database Pin
Dave Kreskowiak16-Apr-08 11:15
mveDave Kreskowiak16-Apr-08 11:15 
GeneralUsing SelectedItem to have pre select item in combo box Pin
AAGTHosting16-Apr-08 8:10
AAGTHosting16-Apr-08 8:10 
GeneralRe: Using SelectedItem to have pre select item in combo box Pin
Dave Kreskowiak16-Apr-08 8:38
mveDave Kreskowiak16-Apr-08 8:38 
QuestionModifying XML Nodes Pin
CocaColaBoy16-Apr-08 6:46
CocaColaBoy16-Apr-08 6:46 
GeneralRe: Modifying XML Nodes Pin
Dave Kreskowiak16-Apr-08 8:41
mveDave Kreskowiak16-Apr-08 8:41 
GeneralRe: Modifying XML Nodes Pin
CocaColaBoy16-Apr-08 8:52
CocaColaBoy16-Apr-08 8:52 
GeneralRe: Modifying XML Nodes Pin
Dave Kreskowiak16-Apr-08 9:23
mveDave Kreskowiak16-Apr-08 9:23 
GeneralRe: Modifying XML Nodes Pin
CocaColaBoy16-Apr-08 10:08
CocaColaBoy16-Apr-08 10:08 
GeneralRe: Modifying XML Nodes Pin
Dave Kreskowiak16-Apr-08 11:06
mveDave Kreskowiak16-Apr-08 11:06 
GeneralRe: Modifying XML Nodes Pin
CocaColaBoy16-Apr-08 11:38
CocaColaBoy16-Apr-08 11:38 
GeneralRe: Modifying XML Nodes Pin
CocaColaBoy16-Apr-08 11:55
CocaColaBoy16-Apr-08 11:55 
GeneralRe: Modifying XML Nodes Pin
Luc Pattyn16-Apr-08 12:13
sitebuilderLuc Pattyn16-Apr-08 12:13 
GeneralRe: Modifying XML Nodes Pin
Dave Kreskowiak17-Apr-08 3:00
mveDave Kreskowiak17-Apr-08 3:00 
QuestionServiceProcessInstaller account? Pin
AHeavey16-Apr-08 5:57
AHeavey16-Apr-08 5:57 
AnswerRe: ServiceProcessInstaller account? Pin
Dave Kreskowiak16-Apr-08 6:37
mveDave Kreskowiak16-Apr-08 6:37 
GeneralRe: ServiceProcessInstaller account? Pin
AHeavey16-Apr-08 6:39
AHeavey16-Apr-08 6:39 
Generalbound combobox... Pin
sabr4916-Apr-08 3:43
sabr4916-Apr-08 3:43 

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.