A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Requery one subform from another



 
 
Thread Tools Display Modes
  #1  
Old August 10th, 2007, 03:48 PM posted to microsoft.public.access.forms
[email protected]
external usenet poster
 
Posts: 22
Default Requery one subform from another

Hi guys,
I have a combobox on a subform within a subform on a tabbed control on
a mainform. The content of this combo box is "Username" and determined
by a username field in a users table. That users table can be appended
using another subform on the mainform.


Does anyone know the requery code so that if I add a record to the
table, the combobox will automatically be updated so that the new
record is available to select in the combo box?

Tony

  #2  
Old August 10th, 2007, 04:25 PM posted to microsoft.public.access.forms
[email protected]
external usenet poster
 
Posts: 22
Default Requery one subform from another

Hiya
I figured it out.
I was going about it in totally the wrong way.
I just stuck a Requery in the OnGotFocus event on the combobox.
I can be a bit of an idiot sometimes ;o)

 




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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:27 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.