Results 1 to 3 of 3
  1. #1
    StuartR is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Location
    Scotland
    Posts
    46

    Question Can't save this record at this time ~ WHY ???

    I have a form which is being used for new record entry but any time I try to close it after data has been input, I get a message stating "You can't save this record at this time"



    This error comes up whether the form closure is triggered by a "Close" Button on the form, or by trying to close the form from the little "X" at the top of the form window bar.

    Interestingly, the form data IS being saved to the table as required even if you state YES on the dialog box "Do you want to close the database object anyway?"

    The only slightly different items on the form from some of my other forms are ...

    An unbound combobox taking info from records on the same table so that I can capture an ID number for use in the new record.
    A hidden field where the captured ID is input by VBA code in the Private Sub Form_AfterUpdate() and one hidden field is assigned the value "Family (Member)" as follows ...

    Code:
    'Capture Family_ID of Lead Member
    Me.Family_ID = FamilyLeadCmb.Value
    'Set Membership Class as Family Member
    Me.Membership_Class = "Family (Member)"
    Any clues re why I am getting this dialog box, and how to avoid it would be appreciated.

    Cheers

    Stuart

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Not sure the Form AfterUpdate event is appropriate. I've never used it.

    Maybe should use combobox AfterUpdate.
    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.

  3. #3
    StuartR is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Location
    Scotland
    Posts
    46
    That did it June.

    Thanks for your help.

    Stuart

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

Similar Threads

  1. Replies: 4
    Last Post: 04-28-2016, 02:11 PM
  2. "You can't save this record at this time" error
    By kelann in forum Programming
    Replies: 4
    Last Post: 10-29-2012, 02:21 PM
  3. Replies: 3
    Last Post: 10-08-2012, 08:40 AM
  4. Replies: 8
    Last Post: 09-27-2012, 11:12 AM
  5. Replies: 2
    Last Post: 01-05-2012, 04:23 AM

Tags for this Thread

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