Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

MS Access form for adding Data

  • 10-07-2005 11:05AM
    #1
    Registered Users, Registered Users 2 Posts: 1,086 ✭✭✭


    Have created a form in MS Access 2000. Did not use the wizard because instead of just text boxes for adding text I wanted to use drop down boxes etc. Created form has all relevant fields I need however I cannot set the button to add the record into my table (same project).

    Is there a shortcut way of connecting form with table without writing on_click VBA code for the command button directly and if not what is the VBA code?

    Thanks


Comments

  • Moderators, Politics Moderators, Paid Member Posts: 44,823 Mod ✭✭✭✭Seth Brundle


    Open the form in form view
    There should be a small black arrow on the top left of the form - click it to select your form.
    Right click on it and choose properties.
    Under either the data or all tabs go to the record source property.
    Choose the appropriate table for the data.

    Now select the first field and then in the property box choose the appropriate field from the control source option.
    Repeat for each field in the form.
    test it!

    Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/ .



Advertisement
Advertisement