Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Foreign Keys

Posted on 2006-11-20
3
Medium Priority
?
247 Views
Last Modified: 2010-04-16
I am using MS SQL 2005 Enterprise Edition and Visual WEB Developer 2005 Express Edition
I have a master student table, SchAppTbl which has a field in it with the row number of a row in the GradeTbl.
I have a foreign key FK_GradeTbl_SchAppTbl established which ties the row number for the student from the SchAppTbl Grade field (4)  to the GradeTbl. However, I do not get the description from the row but the row number 4 in the textbox I am trying to populate.

I thought I might have the FK backwards, but the Tables and Columns dialog of the Foreign Key Relationships dialog box will not allow me to do this.

Please Help! Thanks djc916
0
Comment
Question by:djc916
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 16

Accepted Solution

by:
AlexNek earned 2000 total points
ID: 17998167
use not row number, please. Use Student id.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question