Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Programmatically create a form using VBA

Programmatically create a form using VBA

Scheduled Pinned Locked Moved Visual Basic
helptutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nicholas gionfriddo
    wrote on last edited by
    #1

    Hi, I'm using MS Access 2000, and I need to a form that consists of dynamic objects (i.e., the objects (text boxes) in the form are dependent upon data, and may need to change) Example- The form is illustrating the client's current currency positions. I may need more text boxes in the form if its recordsource increases that types of currency the client possesses. Thus, it the client decides to increase the types of currency's he/she trades, I need the form to dynamically create a new field illustrating that currency. Using VBA, is there a way to programmatically create a form, so it can store dynamic objects/content? Please let me know if I have not explained this in great enough detail I'd appreciate any help at all, Thanks Nick

    G T 2 Replies Last reply
    0
    • N nicholas gionfriddo

      Hi, I'm using MS Access 2000, and I need to a form that consists of dynamic objects (i.e., the objects (text boxes) in the form are dependent upon data, and may need to change) Example- The form is illustrating the client's current currency positions. I may need more text boxes in the form if its recordsource increases that types of currency the client possesses. Thus, it the client decides to increase the types of currency's he/she trades, I need the form to dynamically create a new field illustrating that currency. Using VBA, is there a way to programmatically create a form, so it can store dynamic objects/content? Please let me know if I have not explained this in great enough detail I'd appreciate any help at all, Thanks Nick

      G Offline
      G Offline
      Guillermo Rivero
      wrote on last edited by
      #2

      Here is a sample in VBA for Excel. Take a look at it. http://j-walk.com/ss/excel/tips/tip76.htm[^] Free your mind...

      1 Reply Last reply
      0
      • N nicholas gionfriddo

        Hi, I'm using MS Access 2000, and I need to a form that consists of dynamic objects (i.e., the objects (text boxes) in the form are dependent upon data, and may need to change) Example- The form is illustrating the client's current currency positions. I may need more text boxes in the form if its recordsource increases that types of currency the client possesses. Thus, it the client decides to increase the types of currency's he/she trades, I need the form to dynamically create a new field illustrating that currency. Using VBA, is there a way to programmatically create a form, so it can store dynamic objects/content? Please let me know if I have not explained this in great enough detail I'd appreciate any help at all, Thanks Nick

        T Offline
        T Offline
        the_warlord
        wrote on last edited by
        #3

        How about Dim txt as textbox MyForm.Controls.Add(txt) The warlord

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups