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  

Unbound Combo Refresh



 
 
Thread Tools Display Modes
  #1  
Old March 30th, 2010, 09:25 PM posted to microsoft.public.access.forms
Golfinray
external usenet poster
 
Posts: 1,597
Default Unbound Combo Refresh

I have an unbound combo on a form that is summing a value from a subform.
(=sum([project payments]) I need it to update as I change from one record to
the next in the main form. The mainform and subform are linked by project #.
Thanks!!!
--
Milton Purdy
ACCESS
State of Arkansas
  #2  
Old March 30th, 2010, 10:20 PM posted to microsoft.public.access.forms
Maurice
external usenet poster
 
Posts: 1,585
Default Unbound Combo Refresh

me.unboundcombo.requery in the form current event would be my initial
thought...
--
Maurice Ausum


"golfinray" wrote:

I have an unbound combo on a form that is summing a value from a subform.
(=sum([project payments]) I need it to update as I change from one record to
the next in the main form. The mainform and subform are linked by project #.
Thanks!!!
--
Milton Purdy
ACCESS
State of Arkansas

  #3  
Old March 31st, 2010, 12:27 PM posted to microsoft.public.access.forms
BruceM via AccessMonster.com
external usenet poster
 
Posts: 448
Default Unbound Combo Refresh

Why a combo box? I don't see where a drop-down list fits into this. You
could place the appropriate expression In a text box Control Source. In the
subform footer you could have as the Control Source for an unbound text box
(txtSum):

=sum([project payments])

This assumes [project payments] is a field in the subform Record Source. You
should be able to hide the text box and reference it in a main form text box
Control Source:

=Forms![FormName]![SubformControlName].Form!txtSum

You could also perform the sum directly in a main form text box:

=Sum(Forms![FormName]![SubformControlName].Form![project payments])

There should be no need to requery or otherwise force an update. It should
produce the result for the current record (including related subform records).


I have never tried summing in a combo box , but I expect it could work the
same way.

golfinray wrote:
I have an unbound combo on a form that is summing a value from a subform.
(=sum([project payments]) I need it to update as I change from one record to
the next in the main form. The mainform and subform are linked by project #.
Thanks!!!


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/201003/1

 




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 04:47 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.