Results 1 to 2 of 2

Thread: SQL problem...

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2002
    Posts
    665

    Question SQL problem...

    I have lots of values in a table. In that table I wanna create a query as shows a average value.
    I created a Autonumber-field wich I divided with the field that I want to get the average value from.
    But now it doesen't work, because sometimes you have to delete a row in that table.
    And then the Autonumber-field doesen't work as it should for me.
    I do like this.
    VB Code:
    1. SQL = "SELECT [Table1]![Invoice], [Table1]![Invoice_ACC] / [Table1]![ID] AS Average FROM Table1"
    Does anyone have any suggestion how I should do?

    Also I wanna divide the value in a field with the number of rows that are in front of the row.

  2. #2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width