Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old June 22nd, 2005, 10:54 AM
DanSimp DanSimp is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 11 DanSimp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 41 m 45 sec
Reputation Power: 0
combo box 'dynamic' row source question

I've created a form which contains 2 fields:

1st field is a textbox called get1st,
2nd field is a combo box called get2nd

The source for get2nd comes from a single column table called table1 whos only

field is called field1.

The value input in the get1st field alters the rows in the table table1 (code on

get1st afterupdate).

The combo box options on get2nd are correct intially (when a value is 1st

entered into get1st), however....

when get1st is then updated, the combo values still retain their original

values.

Is there anyway of forcing get2nd to use the current values stored in the table

table1, rarther than an intial snapshot?

Reply With Quote
  #2  
Old June 22nd, 2005, 11:13 AM
DanSimp DanSimp is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 11 DanSimp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 41 m 45 sec
Reputation Power: 0
Smile

Found out whats needed just added

Me.Requery

To the last line of the afterupdate code of get1st, nice and simple!

edit: its better to use <fieldname>.requery, as this only recreates the combo box's list options and will not cause any possible record locking

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > combo box 'dynamic' row source question


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 3 hosted by Hostway
Stay green...Green IT