Results 1 to 5 of 5
  1. #1
    waqas is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    117

    Wink on Pop up Form

    hi experts.



    kindly guide me which properties have to set no that when form open user can not edit data but when press button user can edit and save.

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Hi Waqas,

    In design mode
    Go to the Property Sheet for the Form,
    Click on the Data Tab.
    Set the Allow Edits and other 'Allow . . .' Properties to No.

    When the Form is open and your button is cllicked - you could have code behind the button to change the Allow properties to Yes.

    Something like this:
    Code:
     
            With frm
                .AllowAdditions = True
                .AllowDeletions = True
                .AllowEdits = True
            End With
    This page has some useful information:
    http://office.microsoft.com/en-us/ac...001232718.aspx

    I hope this helps.

  3. #3
    waqas is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    117

    Question

    thanks

    i did same but when i run form it comes blank no data and field are appearing when i press button to set these properties yes the

    only fields appear blank without data

  4. #4
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    I just tried this for myself - just to make sure it worked.

    1. On a Form - I went to Property Sheet | Data and turned Allow Edits to False.
    2. In the code for a command button on the Form I typed in:
    Code:
     
    Me.AllowEdits = True
    3. When I ran the Form - I could not Edit any of the data.
    4. When I clicked the Command button - I was able to Edit data on the Form.

    Let us know if you're still having trouble.

  5. #5
    waqas is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    117
    THANKS i will check in my office and let you know

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

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