Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Probably because your ID field is set to Integer or Long, which does not allow decimals. You would need to change the data type.


    I would recommend deleting and recreating your Combo Box. It can get messy to change all the Properties "on-the-fly", and it is usually just easier to rebuild it after you have made your changes to the field.

  2. #17
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,936
    if ticketprice is a combo with a rowsource something like

    SELECT ID, Price from tblPrices

    with bound column 1 and columncount 2

    then your calculation needs to be

    [TicketsSold]*[TicketPrice].Column(1) AS TotalCash

    columns start at 0, whilst bound starts at 1, (so column(1) is bound column 2) a bit confusing but there you are

    Not sure if this works in a query but will in a form

  3. #18
    moocho992345 is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Apr 2016
    Posts
    10
    I changed the data type to currency, which should allow for decimals, but it doesn't. When you try to enter a decimal, it corrects itself into a whole number. I tried that calculation in my form and it left the combo box empty with no selections.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Expression trouble
    By Confu in forum Access
    Replies: 4
    Last Post: 07-24-2015, 10:52 AM
  2. Replies: 3
    Last Post: 03-26-2013, 08:51 AM
  3. trouble understanding expression
    By mejia.j88 in forum Queries
    Replies: 4
    Last Post: 02-01-2012, 03:00 PM
  4. Trouble with Expression
    By kctxucop08 in forum Access
    Replies: 1
    Last Post: 07-14-2011, 01:55 AM
  5. Expression trouble
    By ROB in forum Access
    Replies: 2
    Last Post: 06-08-2010, 09:36 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