New member alert, am a bit of a novice with Access, but learning quickly!
I have a form 'frmjobplan' with a subform 'frmhours' which contains job
number, date, hours and machine process. Basically the user will be on the
frmjobplan on a certain job number, this job number is linked to the
jobnumber in the subform with master and child.
The problem im having is with an 'Actual Hours' box on the main form which i
want to display a total of hours per job in the subform.
I have added a txt box in the footer of the subform 'frmhours' with the
formula ""=Sum([Hours])"" which when i click the frmhours on is own, it
successfuly displays the sum of all the hours, but not by job.
I have added this to the control source of the 'Actual Hours' box on the main
form
=frmhours.Form!sumofhours
but when the form is opened it just displays "name?" in the Actual hours box.
Can anybody help?
Thanks in advance!!!
|
|
0
|
|
|
|
Reply
|
hermondo
|
1/14/2010 10:56:11 AM |
|
On Thu, 14 Jan 2010 10:56:11 GMT, "hermondo" <u57484@uwe> wrote:
Welcome.
The error means you did not specify a correct name. So either the name
of the subform control is not "frmhours", or the name of the textbox
with formula is not "sumofhours". I suspect the first: note that this
should be the name of the subform CONTROL, not the name of the form
hosted in it.
-Tom.
Microsoft Access MVP
>New member alert, am a bit of a novice with Access, but learning quickly!
>
>I have a form 'frmjobplan' with a subform 'frmhours' which contains job
>number, date, hours and machine process. Basically the user will be on the
>frmjobplan on a certain job number, this job number is linked to the
>jobnumber in the subform with master and child.
>
>The problem im having is with an 'Actual Hours' box on the main form which i
>want to display a total of hours per job in the subform.
>
>I have added a txt box in the footer of the subform 'frmhours' with the
>formula ""=Sum([Hours])"" which when i click the frmhours on is own, it
>successfuly displays the sum of all the hours, but not by job.
>
>I have added this to the control source of the 'Actual Hours' box on the main
>form
>
>=frmhours.Form!sumofhours
>
>but when the form is opened it just displays "name?" in the Actual hours box.
>
>Can anybody help?
>
>Thanks in advance!!!
|
|
0
|
|
|
|
Reply
|
Tom
|
1/14/2010 2:07:52 PM
|
|
thanks for your reply!
Have double checked the naming and its definately all spelt correctly,
'frmhours' and 'sumofhours' although the can i clarify on where i would find
the CONTROL name?
Thanks again
Tom van Stiphout wrote:
>Welcome.
>The error means you did not specify a correct name. So either the name
>of the subform control is not "frmhours", or the name of the textbox
>with formula is not "sumofhours". I suspect the first: note that this
>should be the name of the subform CONTROL, not the name of the form
>hosted in it.
>
>-Tom.
>Microsoft Access MVP
>
>>New member alert, am a bit of a novice with Access, but learning quickly!
>>
>[quoted text clipped - 20 lines]
>>
>>Thanks in advance!!!
|
|
0
|
|
|
|
Reply
|
hermondo
|
1/14/2010 5:00:04 PM
|
|
On Jan 14, 4:56=A0am, "hermondo" <u57484@uwe> wrote:
> New member alert, am a bit of a novice with Access, but learning quickly!
>
> I have a form 'frmjobplan' with a subform 'frmhours' which contains job
> number, date, hours and machine process. Basically the user will be on th=
e
> frmjobplan on a certain job number, this job number is linked to the
> jobnumber in the subform with master and child.
>
> The problem im having is with an 'Actual Hours' box on the main form whic=
h i
> want to display a total of hours per job in the subform.
>
> I have added a txt box in the footer of the subform 'frmhours' with the
> formula =A0 ""=3DSum([Hours])"" which when i click the frmhours on is own=
, it
> successfuly displays the sum of all the hours, but not by job.
>
> I have added this to the control source of the 'Actual Hours' box on the =
main
> form
>
> =3Dfrmhours.Form!sumofhours
>
> but when the form is opened it just displays "name?" in the Actual hours =
box.
>
> Can anybody help?
>
> Thanks in advance!!!
Subform syntax can be a headache. Keri Hardwick wrote a really
helpful article that sorts it out, which is here...
http://www.mvps.org/access/forms/frm0031.htm
|
|
0
|
|
|
|
Reply
|
Piet
|
1/15/2010 12:12:07 AM
|
|
On Thu, 14 Jan 2010 17:00:04 GMT, "hermondo" <u57484@uwe> wrote:
I wanted to make sure frmhours is the value of the Name property of
the subform control, not the value of the SourceObject property of the
subform control.
-Tom.
Microsoft Access MVP
>thanks for your reply!
>
>Have double checked the naming and its definately all spelt correctly,
>'frmhours' and 'sumofhours' although the can i clarify on where i would find
>the CONTROL name?
>
>Thanks again
>
>Tom van Stiphout wrote:
>>Welcome.
>>The error means you did not specify a correct name. So either the name
>>of the subform control is not "frmhours", or the name of the textbox
>>with formula is not "sumofhours". I suspect the first: note that this
>>should be the name of the subform CONTROL, not the name of the form
>>hosted in it.
>>
>>-Tom.
>>Microsoft Access MVP
>>
>>>New member alert, am a bit of a novice with Access, but learning quickly!
>>>
>>[quoted text clipped - 20 lines]
>>>
>>>Thanks in advance!!!
|
|
0
|
|
|
|
Reply
|
Tom
|
1/15/2010 2:18:31 AM
|
|
|
4 Replies
182 Views
(page loaded in 0.061 seconds)
Similiar Articles: Running Total from a Subform - microsoft.public.access.forms ...Main Form Sub Form Has Data Calculation - microsoft.public.access ... Running Total ... Show Running total of an Amount in a subform Hi Tom, Yep, if you have a tutorial I love ... Subform Totals - microsoft.public.access.formsIf query/subform is empty set calculation value to 0 - microsoft ... ... How do I display 1 line per Invoice ... Displaying Subform Totals in a Main Form in Microsoft Access: In ... Grouping Records in a Form - microsoft.public.access.forms ...I created a form and subform to write to my Material ... table. but no more than 1 material ID per ISOID. If I create a form ... ISO to the Material Takeoff form, the main form ... how to handle meter readings - microsoft.public.access ...... meter information to the main form, and reading information to the subform, one line (record) per ... do the total as a simple calculation ... date shows, the readings show ... Table / Form Design for Headcount Report - microsoft.public.access ...... PK Craft text then, have a main form with ... now has to > make six+ entries per day in the form I ... RE: calculate headcount Table / Form Design for Headcount Report ... Calculated Field in Form not Updating - microsoft.public.access ...> > > > >My Form has a results field to show the instructor entering the data ... access ... store the results of a form calculation in ... an update problem on a field in a main form ... Subform calculations per JobNo to show on main form?!? - dBforumsNew member alert, am a bit of a novice with Access, but learning quickly! I have a form 'frmjobplan' with a subform 'frmhours' which contains job subform total needed on main form for calculations - Access World ...Forms: 4: 04-18-2010 11:29 AM: Subform calculations per JobNo to show on main form?!? hermondo: Forms: 2: 01-15-2010 05:26 AM: Total in subform on main form Create a form that contains a subform (a one-to-many form ...Subforms are especially effective when you want to show data from tables or ... You want Access to create both a main form and a subform, and to link the subform to the main ... Subform/Main Form Calculation Problem - Microsoft Access / VBASubform/Main Form Calculation Problem. Microsoft Access / VBA Forums on ... Pay Per Click; SEO; Social Media; eCommerce ... > >this field show the total when there are records ... Programatically adding items to a ListView DataBasePrevious DataBase Discussion: Subform calculations per JobNo to show on main form?!? 7/24/2012 3:16:41 AM
|