MS Access RunCode Macro cannot find my procedure

前端 未结 9 1435
一整个雨季
一整个雨季 2020-12-10 11:24

I\'m only posting this since I wasn\'t able to find a solution anywhere. I finally figured it out. Kind of silly really.

When using the RunCode property within an

9条回答
  •  北海茫月
    2020-12-10 11:49

    I had a similar issue with the error message. My VBA code had the following declaration:

    private function MyFunction()
    
    ....
    
    end function
    

    I removed private declaration to get the Macro Runcode to execute the MyFunction()

    For example:

    Function MyFunction()
    
    End Function
    

提交回复
热议问题