Results 1 to 6 of 6
  1. #1
    dgj32784 is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    22

    Option Group Values Not Stored in Table After Selection

    I’m an Access novice and I’m regularly reminded when the seemingly simplest of things fail to work properly. This is probably something terribly simple, but for some reason an option group value on one of my forms is not stored in the table once the selection is made. The control source appears to be selected correctly. I used the wizard to specify that the value should be stored in the table. Any ideas why my table does not update? I have some programming on the same form that is inserting values directly into the table once a surveyor inputs certain information. I suppose I could do this for the option group as well, but I'm a bit annoyed (at myself) that I cannot get this simple control to behave as intended. Anyone know what I'm doing wrong?

    Thanks,


    David

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Is the Option Group bound to a field? Is the field updateable?

  3. #3
    dgj32784 is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    22
    Again, excuse my ignorance. I think it is bound to a field - is that decided by the control source? I used the wizard and specified where the value should be stored. What should I check to make sure the field is "updateable"?

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Yes, the "bound" field is defined in the ControlSource of the OptionGroup. What is the DataType of the field? Can you open the TecordSource of the Form directly and change that particular field? Is the RecordSource of the Form a table or a query?

  5. #5
    dgj32784 is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    22
    Thanks RG for your comments. They forced me to look further into what the form was based on and how I was inputting other values on the form. The VBA that I used to "manually" insert a custom primary key into the table as a record was preventing me from editing additional fields associated with that record. I've now reduced my VBA to simply generate the custom ID and place it into the control on the form, which now enables me to enter values or select from option groups to enter values into other fields.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    That's great! Thanks for posting back with your success.

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

Similar Threads

  1. Resetting Option Group Values
    By oleBucky in forum Forms
    Replies: 4
    Last Post: 03-31-2011, 05:19 PM
  2. option group default values
    By wlumpkin in forum Access
    Replies: 3
    Last Post: 02-15-2011, 03:30 PM
  3. option group default values
    By wlumpkin in forum Access
    Replies: 6
    Last Post: 02-07-2011, 06:07 PM
  4. combo box selection stored in table
    By combine21 in forum Forms
    Replies: 1
    Last Post: 12-02-2010, 09:57 PM
  5. Combo Box and Option Group Values
    By Desstro in forum Queries
    Replies: 8
    Last Post: 09-06-2010, 11:40 PM

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