Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql statement in control source 1

Status
Not open for further replies.

Bullsandbears123

Technical User
Feb 12, 2003
291
US
HEllo,

I have a non-binding form with a text box.

I put

=(SELECT sum([table1]![field1]) FROM table1;)

as my control source but all I get is "name?"

What's wrong and how can I get this to work?
 
Hi!

If you mean that this is in the control source of the text box then you need to use:

=DSum("[field1]", "table1")

hth


Jeff Bridgham
bridgham@purdue.edu
 
Try something like this:
=DSum("[field1]", "table1")


Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top