Greetings,
I would like to know if there is a limit on how many arguments I can have in a custom function to be used in an Access 2010 Query. I have done some experimenting (see code below) and it seems like there is an limit of 29 in Access 2010. If this is true, is there any way to get around this limitation?
The following code works in both MS Excel 2010 and MS Access 2010:
This code works in MS Excel 2010 but gets a “The expression you entered is too complex.” error in Access 2010:
Thank you for your assistance.
I would like to know if there is a limit on how many arguments I can have in a custom function to be used in an Access 2010 Query. I have done some experimenting (see code below) and it seems like there is an limit of 29 in Access 2010. If this is true, is there any way to get around this limitation?
The following code works in both MS Excel 2010 and MS Access 2010:
Function Test29(A As Double, B As Double, C As Double, D As Double, E As Double, F As Double, G As Double, H As Double, I As Double, J As Double, K As Double, L As Double, M As Double, N As Double, O As Double, P As Double, Q As Double, R As Double, S As Double, T As Double, U As Double, V As Double, W As Double, X As Double, Y As Double, Z As Double, AA As Double, AB As Double, AC As Double)
Test29 = A + B + C + D + E + F + G + H + I + J + K + L + M + N + O + P + Q + R + S + T + U + V + W + X + Y + Z + AA + AB + AC
End Function
Test29 = A + B + C + D + E + F + G + H + I + J + K + L + M + N + O + P + Q + R + S + T + U + V + W + X + Y + Z + AA + AB + AC
End Function
This code works in MS Excel 2010 but gets a “The expression you entered is too complex.” error in Access 2010:
Function Test30(A As Double, B As Double, C As Double, D As Double, E As Double, F As Double, G As Double, H As Double, I As Double, J As Double, K As Double, L As Double, M As Double, N As Double, O As Double, P As Double, Q As Double, R As Double, S As Double, T As Double, U As Double, V As Double, W As Double, X As Double, Y As Double, Z As Double, AA As Double, AB As Double, AC As Double, AD As Double)
Test30 = A + B + C + D + E + F + G + H + I + J + K + L + M + N + O + P + Q + R + S + T + U + V + W + X + Y + Z + AA + AB + AC + AD
End Function
Test30 = A + B + C + D + E + F + G + H + I + J + K + L + M + N + O + P + Q + R + S + T + U + V + W + X + Y + Z + AA + AB + AC + AD
End Function
Thank you for your assistance.