Results 1 to 5 of 5
  1. #1
    Niclasfa is offline Novice
    Windows 8 Access 2013
    Join Date
    Sep 2014
    Location
    Brisbane Queensland
    Posts
    6

    Update Query that prompts for a percentage change

    Hello,



    Can someone please help me with this task of setting up a query that when opening should prompt me for a percentage change. I have attached a screen shot of my progress so far. Would really appreciate any feedback or help with this as I need it to finish my assignment that is due in a couple of weeks.

    Click image for larger version. 

Name:	Screenshot (142).png 
Views:	10 
Size:	177.0 KB 
ID:	18369

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Be cautious of your table design. If you record selling price in the Product table, you will lose all history if you change the selling price.

    All historic order/sales will be updated to use the new sellingprice. You should consider adding 'AgreedToPrice" and Quantity in the actual OrderDetail record.
    That is the Price that that product sold for on this transaction - it could be clearance, loyalty price, negotiated... and will not affect historic Orders.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    I NEVER use dynamic parameter input popups in query. Can't validate the input. Better to have input on form and query references control on form.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    Niclasfa is offline Novice
    Windows 8 Access 2013
    Join Date
    Sep 2014
    Location
    Brisbane Queensland
    Posts
    6
    The query needs to be attached to a main menu. It's soul purpose is for when stock prices change by a certain percentage then it will automatically update all stock items based on that change. This will be used rarely. I could create a form based on that query but it would still need to prompt when opening as it will only be opened when any changes to the stock prices will be changed.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    What do you mean by 'attached to a main menu'? You want a button that will run the UPDATE?

    Did you try the UPDATE query you show? What happens? It works for me.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Cannot change value of a percentage field
    By kdbailey in forum Access
    Replies: 1
    Last Post: 06-19-2014, 02:32 PM
  2. Replies: 3
    Last Post: 01-03-2013, 04:32 PM
  3. Help using update query to change dates
    By goingcrosseyed in forum Queries
    Replies: 1
    Last Post: 12-03-2012, 07:17 AM
  4. Change Percentage Data Type
    By jo8701 in forum Access
    Replies: 1
    Last Post: 02-08-2012, 07:15 AM
  5. Run Query without prompts
    By gailoni in forum Queries
    Replies: 4
    Last Post: 11-03-2008, 01:42 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