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 Form from Combo Box



 
 
Thread Tools Display Modes
  #1  
Old April 13th, 2010, 04:39 PM posted to microsoft.public.access.forms
Anthony Fontana
external usenet poster
 
Posts: 20
Default Requery Form from Combo Box

I have a form with 2 combo boxes. Combo1 has values that restrict what
Combo2 shows. Combo 2 will be used after Combo 1 and simply reads the value
in combo1

When I open the form and select a value from combo1, combo2 works well. The
problem is that the form they are on needs to be requeried. I have tried
forms![MainFormName].refresh and that doesn't work.

How do I get the main form to requery after combo1 is updated.

Thanks.

  #2  
Old April 13th, 2010, 05:57 PM posted to microsoft.public.access.forms
Maurice
external usenet poster
 
Posts: 1,585
Default Requery Form from Combo Box

try: me.requery

hth
--
Maurice Ausum


"Anthony Fontana" wrote:

I have a form with 2 combo boxes. Combo1 has values that restrict what
Combo2 shows. Combo 2 will be used after Combo 1 and simply reads the value
in combo1

When I open the form and select a value from combo1, combo2 works well. The
problem is that the form they are on needs to be requeried. I have tried
forms![MainFormName].refresh and that doesn't work.

How do I get the main form to requery after combo1 is updated.

Thanks.

  #3  
Old April 13th, 2010, 06:10 PM posted to microsoft.public.access.forms
Larry Linson
external usenet poster
 
Posts: 3,112
Default Requery Form from Combo Box

Check in Access Help or via online search for the difference between
..Requery and .Refresh -- they are not two words meaning the same thing.

Larry Linson
Microsoft Office Access MVP

"Anthony Fontana" wrote in
message ...
I have a form with 2 combo boxes. Combo1 has values that restrict what
Combo2 shows. Combo 2 will be used after Combo 1 and simply reads the
value
in combo1

When I open the form and select a value from combo1, combo2 works well.
The
problem is that the form they are on needs to be requeried. I have tried
forms![MainFormName].refresh and that doesn't work.

How do I get the main form to requery after combo1 is updated.

Thanks.




  #4  
Old April 13th, 2010, 07:09 PM posted to microsoft.public.access.forms
Anthony Fontana
external usenet poster
 
Posts: 20
Default Requery Form from Combo Box

Me.requery didn't work. I solved the problem by taking the SQL from the data
property of the second combo box (chooses record for form) and putting it in
the data property of hte form. No records as shown initially, but that's OK
as user should select combo boxes first.

Thanks.




"Larry Linson" wrote:

Check in Access Help or via online search for the difference between
..Requery and .Refresh -- they are not two words meaning the same thing.

Larry Linson
Microsoft Office Access MVP

"Anthony Fontana" wrote in
message ...
I have a form with 2 combo boxes. Combo1 has values that restrict what
Combo2 shows. Combo 2 will be used after Combo 1 and simply reads the
value
in combo1

When I open the form and select a value from combo1, combo2 works well.
The
problem is that the form they are on needs to be requeried. I have tried
forms![MainFormName].refresh and that doesn't work.

How do I get the main form to requery after combo1 is updated.

Thanks.




.

 




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 01:32 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.