Results 1 to 9 of 9
  1. #1
    techexpressinc's Avatar
    techexpressinc is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Dec 2008
    Location
    Indiana, USA
    Posts
    151

    Field allow create but not update

    Is there a easy way to do this?



    I tried Lock but then the users can not add a record. I want them to be able to add but then lock them out of updating a field.

    Thx
    Russ

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    set property allow edit to false, allow delete to false and allow add to true.

  3. #3
    techexpressinc's Avatar
    techexpressinc is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Dec 2008
    Location
    Indiana, USA
    Posts
    151
    Where are these properties - on the field's property "Event " tab or " Data" tab or??
    Thx
    Russ

  4. #4
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    form's property.

    right click on blank area(black area) of the form, you will get it.

  5. #5
    techexpressinc's Avatar
    techexpressinc is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Dec 2008
    Location
    Indiana, USA
    Posts
    151

    updating the form's prop. will not work me

    I only did to lock out one field the plan-id the rest the users need to update regularly.

    Russ

  6. #6
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    All right, go to you first post.

    set lock=true for that field, when new record added(after insert event?), unlock it, when focus move to old record(after update event), lock it again.

    I am not sure which event is the right one. you may try.

  7. #7
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    I've tried following code:
    (textbox name for the field is "A")

    Code:
    Private Sub A_GotFocus()
              If NewRecord Then A.Locked = False Else A.Locked = True
    End Sub
    Private Sub A_LostFocus()
           If NewRecord Then A.Locked = False Else A.Locked = True
    End Sub

  8. #8
    techexpressinc's Avatar
    techexpressinc is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Dec 2008
    Location
    Indiana, USA
    Posts
    151

    What everts should have this code?

    I thinking it would be multiple places?

    Before Update..
    On Change ...
    On Update...
    On Exit..
    On Click...


    Does that sound right?

    Thx
    Rus

  9. #9
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    As my example, only lost_focus and get_focus events

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

Similar Threads

  1. How do i create a new field in a query
    By jayjayuk in forum Access
    Replies: 3
    Last Post: 10-12-2010, 09:06 AM
  2. How do i create a new field in a query
    By jayjayuk in forum Access
    Replies: 1
    Last Post: 10-12-2010, 07:25 AM
  3. Update field in table after update on a subform
    By jpkeller55 in forum Queries
    Replies: 3
    Last Post: 09-30-2010, 08:02 PM
  4. Using Lookup to Create a new Field
    By jtinjr in forum Access
    Replies: 1
    Last Post: 09-25-2010, 11:30 AM
  5. Replies: 3
    Last Post: 04-26-2010, 11:38 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