CarryOver(Me) on Menu Item instead of Button

  • Thread starter Lance G. via AccessMonster.com
  • Start date
L

Lance G. via AccessMonster.com

Instead of a button on my form, I'm using a menu item to duplicate previous
record on the form. I'm using basCarryover as my module. Call CarryOver(Me)
works fine on the button, but when I use the menu item as a public function,
it doesn't the (Me), states it not defined.

How do I get the Call CarryOver(Me) to work in a public function???

I tried Call CarryOver(frmActive.Me) but that doesn't work either.

Thanks,
Lance
 
L

Lance G. via AccessMonster.com

Thank you Douglas!! Works perfectly now.
Try

Call CarryOver(Screen.ActiveForm)
Instead of a button on my form, I'm using a menu item to duplicate previous
record on the form. I'm using basCarryover as my module. Call CarryOver(Me)
[quoted text clipped - 7 lines]
Thanks,
Lance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Acsess 2007 -2010 0
Hello and Help 3
shortcut menu 1
DataMacro problem after Splitting Access Database 2010 0
Menu Coding 2
Carry over data to next entry 5
carry over 1
Carry over values from previous record 6

Top