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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Avg function?

Status
Not open for further replies.

DJKAOS

Technical User
Jun 30, 2000
101
US
I have a access form with a edit box that contains a huge complicated formula, this works fine. (call it &quot;MyEditBox&quot;)<br><br>Now I want another edit box to display the average of all of these, but I get #Name? error.<br><br>I used this as my formula<br><br>=Avg([MyEditBox])<br><br>and it doesnt work.&nbsp;&nbsp;I think it works if I try to average something directly from the table variables, but not from a form.<br><br>Any ideas?<br><br>thanks<br>
 
Avg (in MS Access and MOST data base apps (those which adhere to SQL standards) is an SQL keyword.&nbsp;&nbsp;It _ONLY_ 'works' within an SQL (e.g. Query) statement.
 
I tried that me![MyEditBox]&nbsp;&nbsp;<br>and it didn't work.<br><br>I also tried to use Avg on a querry, and it didn't work.&nbsp;&nbsp;I don't know whats going on now I can't make it average anything no matter what I do.&nbsp;&nbsp;I had it working before but it was averaging something I didn't wan't averaged.&nbsp;&nbsp;Now that wont even work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top