Update query percentage prompt

Stu22

New member
Local time
Today, 04:31
Joined
Mar 28, 2015
Messages
8
Hi I need to do a update query with prompt to input a percentage.
 
Hello Stu22, Welcome to AWF :)

Create an Form to get this going. Or use VBA.
 
This is what I have done but I get error ProdSellPrice"+"ProdSellPrice: [ProdSellPrice]*[Enter a percentage]
 
This is the error message after putting this in "ProdSellPrice+ProdSellPrice *[Enter a Percentage]
 

Attachments

  • Screen Shot 2015-03-29 at 10.29.41 am.jpg
    Screen Shot 2015-03-29 at 10.29.41 am.jpg
    97.5 KB · Views: 140
ProdSellPrice needs to be in square brackets
 
your error is telling you that you are trying to update one datatype with another - in this case a (presumably) numeric datatype with text
 
Ok I've open SQL UPDATE tblProduct, tblProduct AS tblProduct_1 SET tblProduct.ProdSellPrice = "ProdSellPrice"+"ProdSellPrice *[Enter a Percentage:]";
Removed tblProduct I now get a prompt box and it updates but prompt box says tblProduct.ProdSellPrice I need the it to say Enter a Percentage
 
suggest you copy and paste your actual sql - what you are posting at then moment will not even run
 
Thanks for your help this is what worked from another form [ProdSellPrice]*(1+([Enter a Percentage]/100))
 

Users who are viewing this thread

Back
Top Bottom