Results 1 to 3 of 3
  1. #1
    wasim_sono is offline Advanced Beginner
    Windows XP Access 2013 64bit
    Join Date
    May 2005
    Location
    Pakistan
    Posts
    73

    Any function regarding remainder??? [Solved]

    Hi All

    I want to know that if there are any function is available which define the remainder of division.


    I mean that I divide 15 by 10 then the answer is 1 and remainder is 5. so how can we get this 5, by using any function or something else?

    Thanks.

    Wasim

  2. #2
    Join Date
    Apr 2006
    Location
    Manchester UK
    Posts
    11
    Hi Wasim

    Try

    15 Mod 10

    This divides the first number by the second & returns the remainder.

    [YourNumber]-Int([YourNumber])

    to return the part of YourNumber to the right of the dp

    Ian

  3. #3
    wasim_sono is offline Advanced Beginner
    Windows XP Access 2013 64bit
    Join Date
    May 2005
    Location
    Pakistan
    Posts
    73
    Dear Ian

    Thanks for ur reply. but it's not working. I store the values in a variable "Sum". Now I write as
    Code:
    Sum mod 10
    but there is complie error message appears.
    Please explain how to use this function in VBA.

    Thanks.

    Wasim

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

Similar Threads

  1. Is there a function to do this....
    By Nowherefast in forum Access
    Replies: 2
    Last Post: 12-31-2008, 08:08 AM
  2. Replies: 1
    Last Post: 01-08-2007, 01:21 PM
  3. How to use array? [ solved] Thanks.
    By wasim_sono in forum Programming
    Replies: 0
    Last Post: 10-20-2006, 12:00 AM
  4. SELECT FUNCTION help please
    By scott munkirs in forum Queries
    Replies: 0
    Last Post: 10-17-2006, 07:44 AM
  5. Need Help for Dlookup function
    By wasim_sono in forum Programming
    Replies: 5
    Last Post: 01-04-2006, 08:18 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