Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051

    I wonder if access is seeing a circular reference as you variables in your function are the same as the field titles. I've seen this as an issue before.


    Sent from my iPhone using Tapatalk

  2. #17
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    If this code is in a module, you can test it in the immediate window:
    ?AverageAVM(2,2,2,2,2,2,2,2,2,2,2,2)
    Should return 2.
    You can also use the breakpoint, then F8 to advance one line at a time.

    The calls for old and curr should not be in the function itself.
    Please show what the data source is for the textboxes that are receiving the results of the function.

  3. #18
    Quanada is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2017
    Location
    Rahway, NJ
    Posts
    8
    I put the calls in the code as comments for the purpose of this post I will try the immediate window... Thanks for the help guys! I will figure it out... Andy, you may be right about the circular reference as all the names are the same: table, form, function...

  4. #19
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Cool. Just make sure you post how you solved it


    Sent from my iPhone using Tapatalk

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 7
    Last Post: 01-04-2016, 01:10 PM
  2. Replies: 5
    Last Post: 01-24-2014, 09:05 AM
  3. Replies: 10
    Last Post: 12-27-2013, 02:54 PM
  4. Replies: 3
    Last Post: 01-08-2013, 11:51 AM
  5. Function returning Error 91 (can't Figure out)
    By FrustratedAlso in forum Access
    Replies: 2
    Last Post: 04-17-2012, 02:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums