Tom Chesley
Member
- Joined
- Jun 18, 2006
- Messages
- 12
- Programming Experience
- 1-3
I'm still a NEWBEE at VB.NET and using Database's at the same time, so bear with me.
I am Using Visual Studio.NET 2003
the Database is on an SQL Server and I also experimenting with it in MS Access remotely, all I have been having to do was to change the connection so far when remote.
I am currently writing a VB.NET application that is supposed to track Student data from an SQL Database that I created.
I am currently using the GUI to create the Data Connection, and Adapters and Dataset.
The table I am having problems with has a Composite ID (Primary Key)
That table I call tblGrades
The table has the following fields
graStudentID (Primary Key)
graCourseID (Primary Key)
graGrade
The relationship of graStudentID links tblStudents stuStudentID
and graCourseID links to tblCourses couCourseID
The SQL statement I used to set the relationship of these tables don't
seem to bind the data of each of the tables.
I attempted to create a relationship in the data set but I cant select the second table only one or the other.
This application is using textboxs to be bound for the information, not datagrids. All the information I found so far use datagrids for this.
I can provide the application so far if necessary, with the current access database.
I even tried editing the data adapter and created this as a select statement but still cant seem to bind the data from the other tables
to the text boxs
SELECT tblGrades.*, tblStudents.*, tblCourses.*
FROM tblGrades, tblStudents, tblCourses
WHERE graStudentID=stuStudentID And graCourseID=couCourseID
If I use a datagrid the correct information appears in it, but for some reason I cannot bind it to text boxes.
I am Using Visual Studio.NET 2003
the Database is on an SQL Server and I also experimenting with it in MS Access remotely, all I have been having to do was to change the connection so far when remote.
I am currently writing a VB.NET application that is supposed to track Student data from an SQL Database that I created.
I am currently using the GUI to create the Data Connection, and Adapters and Dataset.
The table I am having problems with has a Composite ID (Primary Key)
That table I call tblGrades
The table has the following fields
graStudentID (Primary Key)
graCourseID (Primary Key)
graGrade
The relationship of graStudentID links tblStudents stuStudentID
and graCourseID links to tblCourses couCourseID
The SQL statement I used to set the relationship of these tables don't
seem to bind the data of each of the tables.
I attempted to create a relationship in the data set but I cant select the second table only one or the other.
This application is using textboxs to be bound for the information, not datagrids. All the information I found so far use datagrids for this.
I can provide the application so far if necessary, with the current access database.
I even tried editing the data adapter and created this as a select statement but still cant seem to bind the data from the other tables
to the text boxs
SELECT tblGrades.*, tblStudents.*, tblCourses.*
FROM tblGrades, tblStudents, tblCourses
WHERE graStudentID=stuStudentID And graCourseID=couCourseID
If I use a datagrid the correct information appears in it, but for some reason I cannot bind it to text boxes.
Last edited: