Results 1 to 3 of 3

Thread: access with vb

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    5

    access with vb

    how can i save or sum up 2 value in mc access?wat am i trying to said is...for example, now i'm doing the inventory database..once i open the form which i enter the units in..and save..when the next time i enter the new units in again..the total amount can b sum up in the access...how can i do tat?i did not done any coding yet at this moment.besides, i stil need to do a report wer the details of the balance of th stock is required.the balance will b the difference between the units in and units out at the end of each month.and how can i do this?plz help me up..thx..

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: access with vb

    Something like this?

    VB Code:
    1. SELECT Sum(Field1 + Field2) as Total FROM Table
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3
    Addicted Member
    Join Date
    Jul 2004
    Location
    Mumbai
    Posts
    236

    Re: access with vb

    hi,

    the total amount can b sum up in the access...
    you can retrieve the previous value before updating the record. and add the retrieved value sum with new value and update it.

    and regarding the reports you can make the difference in the select statement of the report(of dataenvironment's, command's commandtext) and display it. if your report is simple, then you can go for datareport.
    --Kishore...

Posting Permissions

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



Click Here to Expand Forum to Full Width