Results 1 to 4 of 4
  1. #1
    muhammadinam9 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2014
    Posts
    2

    Need Help

    Hi



    I have MS Access 2007 form for that can you guide me for it. In that I have three fields

    NET SALE
    SALE TAX
    GROSS SALE

    NET SALE and SALE TAX figures i will put manually but i want the real time answer of =GROSS SALE+NET SALE +SALE TAX on form also can you tell any me how to lock gross sale amount field (box) so no one can put any value


    Thanks

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Do you mean you want: =[NET SALE] + [SALE TAX]

    Textbox with expression cannot be edited by user. If those are your actual field names, place them between [] because they have spaces. Better naming convention would be: NetSale or Net_Sale
    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.

  3. #3
    muhammadinam9 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2014
    Posts
    2
    Thanks for your reply I have another question

    Its not giving me total until i fill all the fields



    I put under control source " =[emp11]+[emp22]+[emp33]+[emp44]+[emp55]+[emp66]+[emp77]+[emp88]+[emp99]+[emp100]+[emp511]+[emp611]+[emp711] "
    Click image for larger version. 

Name:	Sum.jpg 
Views:	4 
Size:	20.9 KB 
ID:	18995

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Arithmetic with Null results in Null. If you want a total even when some fields are Null, handle Null with Nz()

    =Nz([emp11],0) + Nz([emp22],0) + ...

    This looks like non-normalized data structure and will probably give you lots of issues.
    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.

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