FireStrike
Registered User.
- Local time
- Today, 03:29
- Joined
- Jul 14, 2006
- Messages
- 69
I have a string that has only a function name in it. I want to call the function name that is in the string. my function is called goodtime. I have the following code.
When I run this at the eval statement I get the following error.
The expression you entered has a function name that microsoft office access can't find
I cannot figure out why, if I just run
strTemp=goodtime()
then it works fine. Does anyone have a clue why this is not working?
Code:
Public Function goodtime() As String
DoEvents
goodtime = "testing"
End Function
Code:
strTemp = strAnswer & "()"
strAnswer = Eval(strTemp)
When I run this at the eval statement I get the following error.
The expression you entered has a function name that microsoft office access can't find
I cannot figure out why, if I just run
strTemp=goodtime()
then it works fine. Does anyone have a clue why this is not working?