Macro change by code

  • Thread starter javiernews via AccessMonster.com
  • Start date
J

javiernews via AccessMonster.com

Hi,
Is it possible to change the Form name inserted in a Macro by code ?
I mean for example:

Action: OpenForm
Form Name: frmCustomers >>> CHANGE TO >>> frmFriends

(No manually by code only)

thank you
 
F

fredg

Hi,
Is it possible to change the Form name inserted in a Macro by code ?
I mean for example:

Action: OpenForm
Form Name: frmCustomers >>> CHANGE TO >>> frmFriends

(No manually by code only)

thank you

Why would you want to use code to change a macro when you can use code
itself to simply open the form?

DoCmd.OpenForm "frmFriends"
 
J

javiernews via AccessMonster.com

Thanks for answering Fredg
Some times I have to rename the forms like this (by code):
DoCmd.Rename "frmMyNewForm", acForm, "OldForm"

I also have the "Track name Autocorrect info" = true and
"Perform name Autocorrect" = true but the inside code Macros does Not change.
Example:

Inside some Macros I have something like this
Action: OpenForm
Form Name: "OldForm" >>> CHANGE TO >>> "frmMyNewForm"

This is why I also need to know if is possible to rename the (inside) code
macro.

Any help ?
 
J

javiernews via AccessMonster.com

Congratulations Alex !!
Thats is exactally what I was looking for.

THANK YOU !!!
 
Top