Bill,
Your DSUM appears to be formatted improperly.
The first part of the criteria portion is probably correct, but the last part
& 'Ref'
does not make any sense. What you have now will try to compare [Prod Ref]
to the literal string "Ref". Actually, I would think what you have posted
would actually generate an error.
If you have a textbox on your form called txtRef, then it might look like:
=DSum("[q_Prod Components]![TTL]", _
"[q_Prod Components]", _
"[q_Prod Components]![Prod Ref] =" & me.txtRef)
If the value in txtRef is a string instead of a number, it should look like
=DSum("[q_Prod Components]![TTL]", _
"[q_Prod Components]", _
"[q_Prod Components]![Prod Ref] ='" & me.txtRef & "'")
Note that I have used a single quote just to the right of the = , and have
wrapped a single quote between double quotes on the end.
HTH
Dale

Signature
Don''t forget to rate the post if it was helpful!
email address is invalid
Please reply to newsgroup only.
> Hi All,
>
[quoted text clipped - 18 lines]
> Ta.
> Bill
Bill - 18 Apr 2008 15:40 GMT
Thanks Dale,
No questions back at the moment. I will look at what you have posted and
give it a try.
I can assure you however that i don't get an error, just a delay. I think
you are on to something with the way I have done the 'Ref' bit though!
Thanks again.
Bill.
Bill - 18 Apr 2008 16:06 GMT
Thanks Dale, the value is txt so you second suggestion worked, except that I
got a #Name? error initially but removing the me part sorted it. Still a
delay in updating though!
Dale Fye - 18 Apr 2008 17:12 GMT
Bill,
Are you running on a network or on your desktop?
Is the application split (front / back)? If so, where is does each part of
the application reside?
When do you expect that field to change? After you have made a change in
the subform? If so, you could use an event in the subform to force that
control in the main form to requery with code similar to
me.parent.txt_Total.Requery
I'm not sure where (which event of the subform) you would put this code, but
I would suspect it would be in an event procedure that adds a new component
or something like that.
HTH
Dale

Signature
Don''t forget to rate the post if it was helpful!
email address is invalid
Please reply to newsgroup only.
> Thanks Dale, the value is txt so you second suggestion worked, except that I
> got a #Name? error initially but removing the me part sorted it. Still a
> delay in updating though!
Bill - 24 Apr 2008 18:06 GMT
Thanks Dale, that has helped.
Regards.
Bill.