Ok I've moved onto my next lesson in my "Programming with VB .NET" book and I'm stuck on a few things.
Here are my chapter "hands on learning" instructions
This is my first time even attempting something like this, so at first it blew me away but I kept at it (its been a few hours now) and I created form1 with all my labels and textbox's and bound all my textbox's to the corresponding fields of the database I created.
Now I'm stuck on what to do with form2. The first part of the instructions say to only select everything form "tblEmployees" If that's the case then how do I access the "tblPayroll" portion of the database for form2? But, I went ahead and edited the database connection and checked the "tblPayroll" as well (not sure if I should have but can't see what else to do.) Now I don't know how to make form2's textbox's corresponding with the selected employee in form1 of the tblEmployees.
The contents of tblPayroll are :
* fldID - Integer
* fldDate
* fldHoursWorked - Double
* fldGrossPay - Double
* fldFIT - Double
* fldFICA - Double
* fldNetPay - Double
Here are my chapter "hands on learning" instructions
Using the Data Source Configuration Wizard, establish a connection to the database named Payroll.mdb. The connection you create should select all the record from the table named tblEmployees. The table has the following fields and data types:
* fldID - Integer
* fldFirsdtName - String
* fldLastName - String
* fldDepartment - String
* fldEmployeeType - String
* fldDeductions - Integer
* fldWage - Double
* fldPension - Boolean
Create your bound control instances on the main form using the Data Sources window. Create a second form that will display the payroll records corresponding to the selected employee. In the second form, create an unbound DatraGridView control instance. Using the DataTable, search each record, and add only those records to the DataGridView that have the corresponding ID number. For each row, calculate the gross pay by multiplying the employee's wage by the number of hours worked by the employee for the pay period. Display in a TextBox the total gross pay for all the payroll records.
This is my first time even attempting something like this, so at first it blew me away but I kept at it (its been a few hours now) and I created form1 with all my labels and textbox's and bound all my textbox's to the corresponding fields of the database I created.
Now I'm stuck on what to do with form2. The first part of the instructions say to only select everything form "tblEmployees" If that's the case then how do I access the "tblPayroll" portion of the database for form2? But, I went ahead and edited the database connection and checked the "tblPayroll" as well (not sure if I should have but can't see what else to do.) Now I don't know how to make form2's textbox's corresponding with the selected employee in form1 of the tblEmployees.
The contents of tblPayroll are :
* fldID - Integer
* fldDate
* fldHoursWorked - Double
* fldGrossPay - Double
* fldFIT - Double
* fldFICA - Double
* fldNetPay - Double