Trouble writing Query value to form (1 Viewer)

gguy

Registered User.
Local time
Today, 01:37
Joined
Jun 27, 2002
Messages
104
I have a query called VOLTEST that is not bound to the form. VOLTEST sums a field in a table from a subform. When the input is finished in the subform and control goes back to the main form, I want the total from the VOLTEST to show in a field on the form that is not a tab stop. Basically, this is just for reference.
I have tried to put =[VOLTEST]![SumOftest_value] in the control source of the field on the form but I keep getting "Name?" as the result instead of the sum total.
I can run the query in the gotfocus of the first field in the tab order after the subform and I get the correct result in a datasheet view. So, I know the query is working correctly. I just need it to show the result in field on the form.

Thanks for your help. GG
 

FoFa

Registered User.
Local time
Yesterday, 19:37
Joined
Jan 29, 2003
Messages
3,672
=DLOOKUP("SumOftest_value","VOLTEST")

Refresh your control after running
 

gguy

Registered User.
Local time
Today, 01:37
Joined
Jun 27, 2002
Messages
104
Thanks for your help! That got it! GG
 

Users who are viewing this thread

Top Bottom