Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 127
  • Last Modified:

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?
0
SteveL13
Asked:
SteveL13
1 Solution
 
bonjour-autCommented:
The syxtax is

TempVars.Add "myVisitFreq", me.txtVisitFrequency
0
 
Rey Obrero (Capricorn1)Commented:
it should be

TempVars.Add "myVisitFreq", me.txtVisitFrequency.Value
0
 
SteveL13Author Commented:
Yes.  It seems it needed the .Value at the end.
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now