acCmdRecordGotoNew is not available at this time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AdamOnAccess
    New Member
    • Aug 2008
    • 99

    acCmdRecordGotoNew is not available at this time

    Hi Again,

    I created a few forms that contain sub forms. To speed up the process of order entry, I designed a few sub routines that go to a new record in a sub form, or attempt to save a record in a sub form just before the focus shifts to something else. The code work most of the time but occasionally I get this error:

    acCmdRecordGoTo New is not available at this time

    Can someone explain the conditions that cause this error. I'm sure I can fix it if I understood more about what causes it.

    Thanks,
    Adam
    Last edited by Atli; Dec 4 '09, 09:38 AM. Reason: Moved to the Access forum.
  • code green
    Recognized Expert Top Contributor
    • Mar 2007
    • 1726

    #2
    This is an MS Access question

    Comment

    • JeremyI
      New Member
      • Feb 2010
      • 49

      #3
      I've just seen this happen in the process of attempting to do sort of the same thing (that's how I found your thread!).

      Seems to be related to not having any records in the query that the subform links to, so I'm going to add an If statement to skip the acCmdRecordGoTo New step if that is the case.

      Comment

      Working...