Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2015
    Posts
    13

    Unanswered: Problem wit function "allowedits" in continuous form

    Dear people,

    First I've trying to find here a solution for my problem with the function "allowedits" in the continuous form. But no results?

    The code below I've placed in "Form_Current" and/or "Form_Load" of my continuous subform. But it doesn't working, because I can still change the data in old records AND in new record. But when I press twice on "Escape", then this code is working! The data in old records is then protected and the data in new record can be edited. Very strange. Do you maybe know how this code first running before I enter the continuous form? Very thanks for your effort!

    Code:
    With Me
       If .NewRecord Then
          .AllowEdits = True
       Else
          .AllowEdits = False
       End If
    End With
    Last edited by Wappervliegje; 03-12-15 at 08:30.

  2. #2
    Join Date
    Feb 2015
    Posts
    13
    Dear people,

    If I change my code, the problem is still present. See below the updated code:

    Code:
    With Me
       If CurrentRecord = RecordsetClone.RecordCount Then
          .AllowEdits = True
       Else
          .AllowEdits = False
       End If
    End With

  3. #3
    Join Date
    Jun 2005
    Location
    Richmond, Virginia USA
    Posts
    2,763
    Provided Answers: 19
    Look at my answer here

    http://www.utteraccess.com/forum/ind...wtopic=2026929

    where you've double-posted the question.

    Linq ;0)>
    Hope this helps!

    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  4. #4
    Join Date
    Feb 2015
    Posts
    13
    Hi everybody,

    I've found now the solution for my problem. You can find this in my post at the other forum: See my post at the other forum. I want share this solution with you.

    Greeting from Wappervliegje!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •