Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old January 18th, 2004, 06:43 PM
paulphonak paulphonak is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Leeds, UK
Posts: 21 paulphonak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 58 sec
Reputation Power: 0
Unhappy Form and Subform don't work together

I created a function booking form with a subform to put down a list of food ordered. I cannot get each form to have its own list of food ordered via the subform. It merely copy each subform list for each record of form. I am going round and round trying to figure out what I have went wrong in the relationships arrangement. Have I missed something really obvious?

Help!!!

Paul
Attached Files
File Type: zip db 19 jan.zip (80.7 KB, 197 views)

Reply With Quote
  #2  
Old January 20th, 2004, 09:25 AM
supersubra's Avatar
supersubra supersubra is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Coimbatore, India
Posts: 280 supersubra User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 15 m 10 sec
Reputation Power: 6
I have modified the base table structure of the subform and added some events in the ItemID afterupdate and quantity afterupdate event of the subform and set the master child relation ship of the parent form and child form to ID. Subform property also changed from datasheet to continuous form for a better visual effect. Just go thru the MDB coding and you will definitely understand.
Attached Files
File Type: zip db 19 jan.zip (62.0 KB, 225 views)
__________________
V.Subramanian

Reply With Quote
  #3  
Old January 22nd, 2004, 05:31 AM
paulphonak paulphonak is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Leeds, UK
Posts: 21 paulphonak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 58 sec
Reputation Power: 0
Many thanks. I will try to understand the class module. How did you get two primary keys in one table? I tried to do that myself. Northwind database achieved that!

Paul

Reply With Quote
  #4  
Old January 22nd, 2004, 09:54 AM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 12
To create a concatenated primary key, in the desgin view of the table, hold your control key down and select the row of the fields you wish to be part of the concatenated primary key. The click on the key button in the toolbar.

S-

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Form and Subform don't work together


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway