Results 1 to 3 of 3
  1. #1
    Rory898 is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    14

    Unhappy Using a query to set the values in a combo box


    Hey Im trying to set a query that will run when i click a button. Its for special offers. I want the value in the lookups to decrease by 10% when i click it. Any help would be much appreciated

  2. #2
    NassauBob's Avatar
    NassauBob is offline Not THAT Green
    Windows Vista Access 2007
    Join Date
    Feb 2010
    Location
    Augusta, GA
    Posts
    61
    There are a few different ways you could make this happen. My suggestions include two separate data sources; one 90% of the other's value.

    1)You could add another column to your lookup source, and make it contain 90% of the original value. Then upon clicking that button, have the combo box data source change to the new column.

    2) make another table, containing the reduced lookup values, and again, change the data source upon click.

    3) make a query which does all that number 2 above does, instead of a physical table.

    4) Make two separate combo boxes, indentical in every way except for two: they use the two different data sources, and one is Visible, the other (the one reflecting the reduction) is not. Place them so that they perfectly overlap in their intended space. Set the On_Click (or whichever you desire) event to switch the Visible property of both, and while the user won't realize it, they will switch back and forth.

  3. #3
    Rory898 is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    14

    Talking

    Yea i manage to sort it out, I made a new table with the lookup values in it and then used an update query to edit the values in the table which the automatically updates my lookup queries Thanks for taking the time though mate

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

Similar Threads

  1. Combo Box - Field List Values
    By jennyaccord in forum Forms
    Replies: 5
    Last Post: 07-29-2011, 01:49 PM
  2. Combo Box without repeated values
    By SCFM in forum Access
    Replies: 2
    Last Post: 02-20-2010, 05:57 PM
  3. Replies: 1
    Last Post: 08-26-2009, 10:45 AM
  4. Replies: 2
    Last Post: 08-24-2009, 10:36 AM
  5. Replies: 3
    Last Post: 02-26-2009, 10:17 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