Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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
 
Old November 12th, 2004, 05:31 PM
Registered User
 
Join Date: Nov 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need help with ASP/Access design.

Hello All,

My ASP/MSAccess skills are fairly basic, and I am trying to solve the following problem for a client.

For the sake of simplicity, there are two Access tables, "Users" and "Objects"

The Objects table has the following fields:
obj_type (cone, cylinder, sphere)
obj_property (wood, metal, plastic)
obj_material (pine, oak, aluminum, steel, pvc, abs, etc.)

The Users table needs to store demographics (first_name, last_name, etc.), along with each user's preference of objects (cone, sphere, cylinder). In addition to object preference, each user's preferences of materials (pine, steel, etc.) must be stored. Each user could potentially prefer all object types, or just one or two.

I want to display in an ASP page a recordset of an individual user's preferences (what objects the user likes, and what materials they prefer). The Users and Objects tables would be continually updated from another source, and users would need the option to change their preferences at any time.

I hope my description wasn't too convoluted, but I'm stumped at how to best to accomplish this. Any suggestions would be greatly appreciated, as well as being a great learning experience for me.
 
Old November 15th, 2004, 02:50 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Which column relates these two table? Do you have any USERID sort of column used in both the tables that relate each other? If so use a join statement to get all the related records for each user and that should help you display the result as required. May be you can post your code to what extent you have tried, and we could take it from there on.

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old November 15th, 2004, 10:07 AM
Registered User
 
Join Date: Nov 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've only just started to figure out what I'll need to do to make this work. Don't have any code yet. Still working on how many tables I'll need, and what fields will be necessary. Not yet sure if I'm getting in over my head. Any suggestions would be greatly appreciated.

 
Old November 16th, 2004, 02:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Have the user details stored in the USERS table(UserId as Primarykey) and the Object related info stored in OBJECTS table(ObjectID as PK). I would suggest using another table to relate these two using UserId and ObjectId and to record any other info relevant to that.

That should be what you are looking for.

Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old November 16th, 2004, 07:30 PM
Registered User
 
Join Date: Nov 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I may be getting in over my head with this project. Not sure if I know how to accomplish this. Thanks for the feedback, though.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Access 2003 closes when view design paulcbyrum Access 6 May 23rd, 2008 03:21 AM
Design Schemes on Access 2007 mruschetti BOOK: Expert One-on-One Access Application Development 0 October 20th, 2007 07:47 AM
using formula in access database design Lovehead Access VBA 1 January 3rd, 2007 01:44 PM
Access bug or design flaw? Khalifeh Access 3 March 29th, 2005 12:39 PM
access design master clueless_may Access 0 October 19th, 2004 09:57 AM





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