VBA-Create Macro (& Delete Form)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • daoxx
    New Member
    • Mar 2008
    • 32

    VBA-Create Macro (& Delete Form)

    Hi
    I didn't find anything with the search - the words are too general.

    How can I create a macro and define what it does from code?


    EDIT: The other question was
    How can I delete Form2 from Form1 with a button?
    To do this use
    Code:
    DoCmd.DeleteObject acForm, name
    Thanks
    Last edited by daoxx; Mar 13 '08, 10:12 AM. Reason: Found the delete.
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32656

    #2
    I'm afraid I can't help here, but I'm interested to know why you might want to create a macro from VBA code?

    Comment

    • daoxx
      New Member
      • Mar 2008
      • 32

      #3
      I'm trying to allow people that can not work with Access have a simpler environment (only "click button, input data" kinda thing).

      Comment

      • NeoPa
        Recognized Expert Moderator MVP
        • Oct 2006
        • 32656

        #4
        Ah.

        In that case I suggest that perhaps you're interested in creating a macro OR code - rather than creating a macro using code.

        Either method can automate tasks for you, although my personal preference is always to use code where possible.

        I believe macro creation is possible with code, but certainly not for the feint-hearted or inexperienced coder.

        Good luck :)

        Comment

        • daoxx
          New Member
          • Mar 2008
          • 32

          #5
          Thank you, NeoPa .

          Comment

          • NeoPa
            Recognized Expert Moderator MVP
            • Oct 2006
            • 32656

            #6
            No worries - Glad I could be of any help.

            Welcome to TheScripts :)

            Comment

            Working...