Results 1 to 6 of 6
  1. #1
    taholmes160 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2018
    Location
    Lester, Ohio
    Posts
    67

    Creating an Add/Edit record Form

    Hi Folks:



    I have a form that I have created that I am trying to make into an add/edit record form. Its a basic form that has a button for add a new record on it. Works fine for editing forms, paging through them and stuff like that, but it REALLY doesnt like it when I try to add a blank record and fill it out. When I try to start filling out the form, it accepts the first value just fine, but when I try to put the next one in, I get the following message;

    The value can not be added to this new row until the row has been committed. Commit the row first and then try adding the value


    SLRG_Waybills_4 -- to post 2-11-2019.zip

    This is the database zipped and attached, the form you are looking for is frmCarManagement

    Thanks
    TIM

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    Turn the wizard on, add a button,
    select the ADD NEW RECORD button from the list,
    the code should save the record before creating the new rec.
    if not, put the save rec code right before the New rec code.

  3. #3
    taholmes160 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2018
    Location
    Lester, Ohio
    Posts
    67

    Button Macro

    Hi Ranman256 -- I added the button using the wizard
    heres a screenshot of the macro on that button

    Click image for larger version. 

Name:	Macro.png 
Views:	20 
Size:	11.9 KB 
ID:	37414

    Tim

  4. #4
    taholmes160 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2018
    Location
    Lester, Ohio
    Posts
    67

    Cross Posting Notification

    Please note:

    Due to limited responses here, I have cross posted this topic a the following location(s)

    https://www.utteraccess.com/forum/in...wtopic=2052625
    https://www.access-programmers.co.uk...isplay.php?f=9 - note cannot give the exact link as the post has not yet received approval
    Last edited by taholmes160; 02-14-2019 at 04:28 PM. Reason: add link

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Recommend not include TblCarCodes table in RecordSource. But if you do, use LEFT instead of INNER join. I changed this and not getting described issue.

    Just bind to TblCars. Expression in textbox can reference column of combobox to display the CarType description.
    =[AARCode].Column(2)

    Either way, textbox displaying CarType description from TblCarCodes should be Locked Yes and TabStop No.
    Last edited by June7; 02-14-2019 at 09:55 PM.
    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.

  6. #6
    taholmes160 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2018
    Location
    Lester, Ohio
    Posts
    67
    Hey June 7

    Thanks for the fix, it worked a treat

    TIM

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

Similar Threads

  1. Replies: 2
    Last Post: 05-18-2018, 05:08 PM
  2. Replies: 6
    Last Post: 05-18-2018, 12:33 PM
  3. creating an edit form
    By Rizvi in forum Forms
    Replies: 7
    Last Post: 11-16-2017, 12:31 PM
  4. Replies: 21
    Last Post: 08-05-2013, 06:23 AM
  5. Creating "Edit Record" link in table column
    By joshearl in forum Forms
    Replies: 1
    Last Post: 12-25-2009, 11:17 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