Results 1 to 5 of 5
  1. #1
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936

    Modifying form design in VBA

    I want to be able to add controls to a form/modify the form design after certain user-entered values. Does anyone know of a link where I can read up on how to do this?

  2. #2
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by aytee111 View Post
    I want to be able to add controls to a form/modify the form design after certain user-entered values. Does anyone know of a link where I can read up on how to do this?
    I think this is a bad thing to do... for many reasons

    Having said that, open any code module. In the menu bar, click on HELP. In (#1) Enter Keywords, type for "CreateControl" . Look for "CreateControl, CreateReportControl Methods" in the topic area (#3).

  3. #3
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Thanks, I'll go there.

    I wanted to add additional page control tabs if the user selected additional items. Maybe you're right, I should come up with a different design.

  4. #4
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by aytee111 View Post
    Thanks, I'll go there.

    I wanted to add additional page control tabs if the user selected additional items. Maybe you're right, I should come up with a different design.
    I would have the controls already created, then hide/show controls as necessary..... Just my 2 cents

  5. #5
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    The trouble is that there is no sequence to their adding - they could select apples, then oranges, or peaches then pears then bananas! I don't even know how many they will choose. Anyway, as you said, probably a bad way of setting it up.

    Also, this will be a runtime version, I don't even know if I can make changes to a runtime database. As you can see, first time I am doing something like this.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Modifying existing form
    By Arcal in forum Forms
    Replies: 3
    Last Post: 09-21-2011, 01:52 PM
  2. Modifying a database
    By simba in forum Access
    Replies: 0
    Last Post: 06-15-2011, 11:32 AM
  3. Help needed in modifying Function
    By Alex Motilal in forum Programming
    Replies: 4
    Last Post: 02-06-2011, 11:59 PM
  4. Modifying a Split Form?
    By robertrobert905 in forum Access
    Replies: 0
    Last Post: 10-26-2010, 08:00 AM
  5. Replies: 1
    Last Post: 03-24-2010, 02:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums