+ Reply to Thread
Results 1 to 4 of 4

Calculate no of days due in Access Table Field.

  1. #1
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Calculate no of days due in Access Table Field.

    Hey!.

    I have Table containing field for a Invoice entry.
    Invoice No-----Service--Amount--Aucknow.---Creditdays---Duedays--Due30days--Due60days

    I enter a invoice with all details.
    I need vba code or SQL statement to calculate how many days that particular Invoice is due from Aucknowledgement Date. And to show in the respectives field.

    For example if it is due morethan 30 days, it should show in the filed "Due30Days".

    I tried as far as I can. But I couldn't.
    Can anyone please help me?

    Thanks & Regards
    Charles
    Last edited by ebin charles; 10-31-2011 at 07:31 AM.

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Calculate no of days due in Access Table Field.

    Could you give an example of some records? Which fields are you looking to have filled in, and with what data? Will all the fields be filled in by the user?
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  3. #3
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Re: Calculate no of days due in Access Table Field.

    Quote Originally Posted by davegugg View Post
    Could you give an example of some records? Which fields are you looking to have filled in, and with what data? Will all the fields be filled in by the user?
    I attached the file.
    I have three fields. Income, Expense and Net Amount.
    I need the net Amount automatically when I enter Income and Expenses.

    Thanks in advance.
    Regards
    Charles
    Attached Images Attached Images

  4. #4
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Calculate no of days due in Access Table Field.

    I'm confused, this seems totally different from your initial request. Is Net Amount = Income - Expense? If so, it is generally wasteful to store records in a database that are simply calculations based on other records - it's better to do the calculations in the code.

    Regardless, I'd need to see your current form/code to see what triggers the input of data into your database, your tables/form names, etc.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1