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: 303
  • Last Modified:

Rename a form in access

Hi,
How can i delete forms en rename forms using code?

tx
0
sonmic
Asked:
sonmic
  • 2
1 Solution
 
danishaniCommented:
' delete an Object Form
DoCmd.DeleteObject acForm, "YourFormName"
' rename a Form name
DoCmd.Rename "OldName", acForm, "NewName"

0
 
danishaniCommented:
oops the other way around

DoCmd.Rename "newname", acForm, "oldname"
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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