Microsoft Access Forums

Go Back   Microsoft Access Forums > Access Forums > Forms

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 03-17-2010, 10:53 AM
Qasim Qasim is offline Windows XP Access 2003 (version 11.0)
Novice
 
Join Date: Mar 2010
Posts: 3
Qasim is on a distinguished road
Default Form (Subform)

I have a table “tblParts”. I have 10 different types of parts. Each part type has 10 unique properties (about 20 common properties for all type of parts). So, I have decided to store the unique properties in table with columns “Property” and “Value”. (Please comment is it right approach?)

Eg.1
tblPart

Part id -- Part Type -- Part name -- Part colour -- Part Manuf
================================================== ===
1------------ANZ ----------Safe Box----- Green ----------------LB


tblPartdetails

Id --Partid--- Property---- Value
=============================
1 -----1 --------Angle---------- 45
2 -----1 -------Finishing---- Clear
3 -----1 -------Cladding---- Chrome


(1 to many relation between tblPart and tblPartdetails)
How do I create forms to add and update this type of table?
I have proceeded with creating Mainform for the common properties (tblPart) and subform for unique properties (tblPartdetails). The subform is in datasheet type form.

In the first column of the subform I am planning to populate the properties depending on the selected Part type in the mainform.
I struck up in this. I want to insert the following in AfterUpdate event in the Part type combo box of the mainform.
Me!subform1.Form!Property = <list of properties for the selected part type> in the first column of the subform, so that user enter the property value in the second column.

I donot know how do I populate each property in each row of the first column.
Any help and suggestion is much appreciated for the following
1) Is this approach of table design correct?
2) Is this approach of form design correct?
3) How do I populate 10 properties in first column of the subform (one property in each row)

Thanks

Last edited by Qasim; 03-17-2010 at 11:04 AM. Reason: formating
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
from new tab - how to copy a form as new subform under new tab Done Forms 2 03-04-2010 11:04 AM
Show all recordset in form/subform Brian62 Forms 4 11-04-2009 08:56 AM
form - subform field mapping nqirar Programming 2 03-02-2009 10:49 AM
Form with subform grgerhard Forms 0 04-10-2006 08:28 AM
subform and form in Many-2-many relationship vessii Forms 0 02-16-2006 06:11 AM


All times are GMT -8. The time now is 08:31 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.