Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228

    using a module in table calculations

    I have a custom module called workdays. and I have the following code assigned to a text box:



    Code:
    =Work_Days([Date_Added],[Old date])
    This does what I need on the form. But I need to store the value generated. I don't know how to do this. EITHER from the from I would keep the value. OR use it in a calculation at the table level. I cant do either.

    Anyone have any advice which direction to investigate? or any solutions?

    Thanks Andy.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    You can use his method for storing:

    http://allenbrowne.com/casu-14.html

    I'm pretty sure you can only use built-in functions in a calculated field (at the table level).
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    I didn't use it for storing, I couldn't work it out haha. But thanks to that link and some investigation I'm able to use it in query's and reports. I wanted to keep it as data but I now understand and realise there is no need to.

    Thanks for your help.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    No problemo!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 30
    Last Post: 09-30-2015, 10:58 AM
  2. Inter Table calculations
    By michaelhare in forum Access
    Replies: 4
    Last Post: 12-01-2014, 11:04 AM
  3. Replies: 4
    Last Post: 05-16-2011, 04:58 PM
  4. Calculations in Form not saving to table
    By ld8732 in forum Forms
    Replies: 1
    Last Post: 01-24-2011, 07:31 PM
  5. Variable Table Names in a Module
    By Jessica in forum Modules
    Replies: 1
    Last Post: 04-19-2010, 07:38 PM

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