converted Macro to Code, get error

Experts,

I have a form with an Onclick event.
The event is in the form of a macro.
It works fine.  

I converted the macro to code and now get an error on the OnClick event of that same form.  
"TempVars can only Store data.  They can not store objects"
(actually I converted the macro in another db then copied and pasted from that db to the current db as didnt want to convert all macros to code in current db...if that matters)
I didnt do anything else except convert macro to code.

posted pic.

Let me know what you think as to why I get the error.

error,After Converted to code
pdvsaProject financeAsked:
Who is Participating?
 
Rey Obrero (Capricorn1)Commented:
this
tempvars.add "CurrentID",ID


should be

tempvars.add "CurrentID", me.ID.value
0
 
pdvsaProject financeAuthor Commented:
here is the macro before converted (collapsed all)

Macro, before converted
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.