Results 1 to 3 of 3
  1. #1
    BorisGomel is offline Competent Performer
    Windows Vista Access 2003
    Join Date
    Apr 2011
    Posts
    101

    Sum By Clients

    Hello ,

    I got new task from my boss and I need help to solve this . I have a large form( 25000 records) which consists 4 fileds -banks, accounts ,expenses, and amounts .I need to able to select the banks via list box and the total amount of checks that have been issued to that bank should be calculated on the form .I created the list box that listed all banks and now I need to code if I select the bank in the lsit box the total amount will be show up in the text box "TotalAmount" accordingly the bank I have selceted .I am not expert in coding in VB -help will be greatly apprected .
    Thank you ,
    Best Regards.

  2. #2
    Cheshire101 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Dec 2009
    Posts
    42
    Ok... I think understand what you are asking...
    If you want the total amount issued to the bank then you can use like this

    Code:
    UnboundField = DSum("$$Field","TableName","BankName='" & Me.BankNameFieldonForm & "'")
    You can then set the format of the field to Currency

  3. #3
    BorisGomel is offline Competent Performer
    Windows Vista Access 2003
    Join Date
    Apr 2011
    Posts
    101
    Thank you so much , works beautifully .
    Will mark this as solved

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