Results 1 to 6 of 6
  1. #1
    joshynaresh is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2013
    Posts
    131

    inserting/deleting field in form by vba

    Dear Sir,



    Can we insert and delete field by using vba.

    Thanks in advance

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Not sure what you're asking or trying to do.
    You've posted in the Forms forum but are asking about fields which are in tables, not forms. Forms have controls which may or may not be bound to a field
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Why would you want to? Routinely modifying table structure is indication of a non-normalized database. Once a db is fully deployed, design changes should be rare.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    What June7 said! If you want a Control to sometimes be there, sometimes not, depending on what type of Form you're using, you can control the Control's Visibility property.

    But we really need to know more about what you're trying to do, here, in plain language!

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  5. #5
    joshynaresh is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2013
    Posts
    131
    I just want to know can we delete/insert field in any form by vba. It is just for my knowledge. There are no any resion because i'm not designing any db but i'm learning Access myself from internet.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Yes. The form has to be opened in design view. Then it must be saved with the modification.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 4
    Last Post: 04-06-2014, 10:01 AM
  2. Replies: 4
    Last Post: 10-08-2011, 06:31 AM
  3. Inserting a New Field in Middle of Table
    By AccessGeek in forum Programming
    Replies: 4
    Last Post: 03-14-2011, 09:22 AM
  4. Replies: 7
    Last Post: 03-03-2010, 11:06 AM
  5. Inserting multiple rows using a value in a field
    By z1efuller1 in forum Queries
    Replies: 1
    Last Post: 01-06-2010, 11:20 AM

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