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 November 10th, 2003, 12:35 PM
Peter Bellamy Peter Bellamy is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Malvern, England
Posts: 4 Peter Bellamy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry A selective Combo Box

I want to use a Combo box on a sub-sub-form that only shows a selection from a table depending upon a value on the Master Form. ( in Access97)

I have setup the Combo box to obtain its values from a query. That query refers to the control on the Master Form ([Forms]![MaterForm]![control]) and when run manually does what I want.
However, it refuses to be selective when the Combo Box is clicked, it returns all records not the selection!

I happen to also have the control value on the sub-sub-form, it is stored with that forms data. I have tried refering to it with the query and still no joy!

I don't know if it is relevant but the Master to sub-form is not a master/child relationship, whereas the sub/sub-sub forms are.

Reply With Quote
  #2  
Old November 10th, 2003, 08:16 PM
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
Try the following code in the after_update event of the combobox

[forms].[formName].[objectname].requery

S-

Reply With Quote
  #3  
Old November 12th, 2003, 12:15 PM
Peter Bellamy Peter Bellamy is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Malvern, England
Posts: 4 Peter Bellamy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry

S.
Thanks but that does not work, it would be after the list is displayed! Putting it on a Got Focus or Click does not either! I have even tried on an After Update on the control on the Main Form. Still no luck :-(
Peter

Reply With Quote
  #4  
Old November 12th, 2003, 02:17 PM
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
Could you post a sample of your DB, I would need to see it to fine tune the troubleshooting.

S-

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > A selective Combo 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
Stay green...Green IT