SteveL13
asked on
TempVars with onload event of a form
I'm sure I'm doing this all wrong but I'm trying to set the value of a TempVar when a form opens with...
Dim myVisitFreq As Integer
TempVars.Add myVisitFreq = me.txtVisitFrequency
But it doesn't work. What is wrong with it?
Dim myVisitFreq As Integer
TempVars.Add myVisitFreq = me.txtVisitFrequency
But it doesn't work. What is wrong with it?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes. It seems it needed the .Value at the end.
TempVars.Add "myVisitFreq", me.txtVisitFrequency