Results 1 to 9 of 9
  1. #1
    ChrisCione is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    6

    Autopopulate NOT allowing overwrite

    I have several unbound text boxes on a form with the following controlsources:



    =Classification.Column(1)
    =Classification.Column(2) and so on.

    I've discovered that this method, in essence, locks the textbox and doesn't allow any entry at all.

    Any suggestions?

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    what do you want?

  3. #3
    ChrisCione is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    6
    Quote Originally Posted by weekend00 View Post
    what do you want?
    To be able to write data in the textbox if necessary.

  4. #4
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    leave them as unbound(delete =Classification.Column(1) ), set default value if needed.

  5. #5
    ChrisCione is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    6
    Quote Originally Posted by weekend00 View Post
    leave them as unbound(delete =Classification.Column(1) ), set default value if needed.
    This defeats the purpose.

    Any other suggestions (from anyone), or is it just not possible to set the controlsource but also allow for overwriting with values?

  6. #6
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    you may set default = Classification.Column(1)
    I am not sure what Classification.Column(1) is. if this can not be set as default, you need to set it in some event for example form_load.


    once you set the textbox = something, that means you bound it to something unupdatable, hence you can not change it.

  7. #7
    ChrisCione is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    6
    Quote Originally Posted by weekend00 View Post
    you may set default = Classification.Column(1)
    I am not sure what Classification.Column(1) is. if this can not be set as default, you need to set it in some event for example form_load.


    once you set the textbox = something, that means you bound it to something unupdatable, hence you can not change it.
    I was afraid of that, but I was hoping that someone know a work-around.

    Thanks.

  8. #8
    pkstormy's Avatar
    pkstormy is offline Access/SQL Server Expert
    Windows XP Access 2003
    Join Date
    Mar 2010
    Location
    Madison
    Posts
    682
    You can always populate the value when the form opens or based upon a button's OnClick.
    ie.
    me!MyUnboundField = me!Classification.Column(1)

    But as weekend00 pointed out, if you use an expression in the controlsource of a field, you cannot then edit the value in that field. The controlsource must be blank (ie. unbound field) and you must populate that value either in code or via setting the default value.

  9. #9
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Maybe the question we should be asking is why are the TextBoxes unbound? You obviously are attempting to fill them from your ComboBox but then you want the user to be able change the value of a basically *display textbox*. What is the reason for that?

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

Similar Threads

  1. Replies: 3
    Last Post: 05-26-2011, 12:52 PM
  2. MSA 2007 ... allowing VBA
    By asearle in forum Access
    Replies: 1
    Last Post: 08-16-2010, 05:07 AM
  3. Replies: 13
    Last Post: 11-25-2009, 03:10 PM
  4. Acess autopopulate a query
    By stendec in forum Access
    Replies: 0
    Last Post: 10-20-2009, 03:49 PM
  5. Import and overwrite?
    By Ben in forum Import/Export Data
    Replies: 3
    Last Post: 08-11-2009, 08:43 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