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 25th, 2004, 07:38 AM
adrenachrome26 adrenachrome26 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 1 adrenachrome26 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
create form based on selection in list box

I have a table with fields : PersonID, courseID and status. This indicating for each person which courses have been assigned to him and the status of the course (cancelled, completed, started, assigned). So each personID has one or more records in the table.

I want a form to display for a given person all yet to complete courses. For this I have made a parameter query, and based a form on that. When opening that form, the user is prompted for the personID, and all courses with status not completed or shown.

I have made a second form, with an unbound list box containing all personIDs from the table. On this second form also a command button which opens the described form based on the parameter query.

So now I need to make the parameter query use the personID selected in the listbox on the other form, instead of prompting the user for that personID once again.

Hope this is clear ? And hope even more that someone can tell me how to do this ?

Thx.

Reply With Quote
  #2  
Old January 25th, 2004, 10:36 PM
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
Just go thru the code in the form course in attached MDB. I have set the form property to continuous form and record source to the parameter query(built within the form based on form text box criteria to accept wild cards also) in after update event a form requery command is issued to fetch data.
Attached Files
File Type: zip training.zip (81.0 KB, 302 views)
__________________
V.Subramanian

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > create form based on selection in list box


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 5 hosted by Hostway