Wrox Programmer Forums
|
All Other Wrox Books Do you have a question about a Wrox book that isn't listed anywhere on p2p.wrox.com or where the forum is locked? Here's a forum to post questions about any other Wrox book so that other readers or one of the authors can help you with your questions. IF YOU ARE LOOKING FOR CODE DO NOT ASK "Where can I find the code for this book?" That question is answered here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the All Other Wrox Books section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 10th, 2004, 12:05 AM
Authorized User
 
Join Date: Feb 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default creating table relation in msde

Hi,

I have created database with 2 tables in MSDE using Access 2002 as the front end for MSDE. My question is using Access 2002 as front
how do I create relationship between my tables ?

Thanks




  #2 (permalink)  
Old February 10th, 2004, 03:16 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Crete a new access file
select new access project
select existing database
connect to your sql server database from this adp file and that will allow you to do more admin stuf.

do a search on the forum for adp.



Sal
  #3 (permalink)  
Old February 10th, 2004, 09:53 PM
Authorized User
 
Join Date: Feb 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes I have the latest service pack SP8 for Access 2002.
I did create ADP project first, then I connected to SQL server and then created a new database, then I put two tables in it with primary keys. And then my problem start, where to click to create the relation between the tables. It is very easy when you have database in Access instead of MSDE, you click on relation icon and link tables.
I think somehow I need to get following screens

http://www.sqlmag.com/Files/09/7633/screen_05.gif
http://www.sqlmag.com/Files/09/7633/screen_06.gif

Have you created database in MSDE using Access and then linked the tables?

  #4 (permalink)  
Old February 11th, 2004, 05:51 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

In an ADP Project, you can manage the relations through the "Diagram" feature.

Create the database and tables as you described and the follow these steps:

1. Choose Insert | Diagram
2. From the Add Table dialog, choose the tables you want to connect
3. Drag and drop your primary and foreign keys together.
4. Save the diagram
5. Access will offer to update the related tables as well. Choose Yes, so the tables and their relations are successfully saved in the MSDE database.

There may be easier or better ways to do this, but this one does at work fine.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #5 (permalink)  
Old February 12th, 2004, 01:03 AM
Authorized User
 
Join Date: Feb 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, Thanks a lot for your message. I followed the steps you mentioned and was able to create relationship among my tables.







Similar Threads
Thread Thread Starter Forum Replies Last Post
creating table ph0neman Classic ASP Basics 3 January 22nd, 2008 05:06 PM
Creating table with existing table without value kumar_kumar Oracle 1 January 4th, 2005 07:12 AM
constraint for 1-to-n relation j_yan MySQL 0 December 10th, 2004 11:03 PM
Add table in MSDE CSPres VS.NET 2002/2003 0 December 6th, 2004 12:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.