Results 1 to 3 of 3
  1. #1
    shah1419 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jan 2013
    Posts
    30

    trying to put the value in array not single by single..

    Private Sub Tuition_AfterUpdate()


    Dim intS As Integer 'Please use Long if the numbers expected is Greater than 32,767
    intS = DSum("[Balance]", "12356", "[GR No]=" & Me.[GR No])
    'I have assumed that InvIN and InvOut is in the same table. This will work if you maintain seperate tables just change the table name
    Me.Arrears = intS
    End Sub
    --------------------------------------------------------------------------------------
    this code insert values when i update the tuition column. i want to insert it on all entil the end of file.
    when i want to insert the value in tuition column. the same row of the tuition column has been also be updated with this function. please advised.

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    It is unclear what your question is.

    There is nothing in your post that has to do with an array.
    There is nothing that inserts a value in the tuition column.

    There is a control named "Arrears" that is updated to the result of the Dsum function.

    Also, since this is dealing with money, I would use currency, single or double in the code. The tuition or payments won't have any cents????

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Saving aggregate data is usually a bad idea. Against relational database principle of 'save raw data, do calcs in report'. Review http://allenbrowne.com/AppInventory.html
    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.

Similar Threads

  1. Can I have two tables in a single form?
    By Ash1402 in forum Access
    Replies: 6
    Last Post: 10-02-2012, 08:56 PM
  2. Multiple Reports to Single PDF
    By hkimpact in forum Access
    Replies: 1
    Last Post: 06-11-2012, 03:17 PM
  3. Exporting single query and single report.
    By rfhall50 in forum Programming
    Replies: 2
    Last Post: 02-18-2011, 12:08 PM
  4. Print Single Report
    By emkwan in forum Access
    Replies: 1
    Last Post: 01-29-2010, 11:19 AM
  5. Query to display in single row
    By access in forum Queries
    Replies: 10
    Last Post: 01-14-2010, 11:40 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