Results 1 to 2 of 2
  1. #1
    cheyanne is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Location
    Valencia, Spain
    Posts
    91

    Option box value not retaining value as one moves from record to record

    Hi

    I am trying to produce an option group to sit on a form which will allow a facility to offer discounts to Clients.
    The range of discounts on offer is 0% 5% 10% 15% 20% 25%.

    I have developed the option group and when you are on a specific record and make a % discount selection, the mathematics
    function as intended. If, for example, you insert £250.00 into the amount text box, and select the 20% option from the option group


    the discount text box then shows £50.00 discount and the Total box (the amount to pay) as £200.00. All well and good so far.


    The problem comes when I return to a previous record and find that, although the discount text box still reads, in the example
    above, £50.00, the option box for "20% discount" is not highlighted and so one cannot readily see exactly which option box
    was selected for that particular record. I have tried refreshing the records on opening the form, requerying the group frame
    (named fraDiscount) but all to no avail. Does anybody know how to resolve this annoying problem?


    I have also tried various combinations of VBA code to store the group option box value (reading 1 to 6), to a new text field, but
    again no joy. It is possible that I was not referencing the option group values correctly. I have attached a screenshot of the VBA
    code used for the calcuations.

    I havealso enclosed a screenshot of the form on which the group option selections reside.

    Any assistance would be much appreciated.

    Thanks

    Cheyanne

    Click image for larger version. 

Name:	Capture - fraDiscount.JPG 
Views:	5 
Size:	28.1 KB 
ID:	7383
    Attached Thumbnails Attached Thumbnails Capture-OptionGroup.JPG  

  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
    The OptionGroup needs to be bound to a field in your RecordSource.

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

Similar Threads

  1. Replies: 8
    Last Post: 07-06-2013, 05:13 PM
  2. Replies: 4
    Last Post: 07-22-2011, 12:52 PM
  3. record time based on option using textbox
    By stoey in forum Programming
    Replies: 2
    Last Post: 04-14-2011, 08:43 AM
  4. Replies: 1
    Last Post: 12-20-2010, 02:22 PM
  5. Replies: 5
    Last Post: 06-29-2010, 06:10 AM

Tags for this Thread

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