Millos
asked on
Invoice Total VB Function
I would like to create a function in VB. I never wrote or used functions before. Here is the situation:
I have two tables: Invoice table & Account Receivables Table. Here are the fields:
Invoice Table: Invoice#, Date,(all customer Info fields), Total Labor.
A/R Table: Invoice#, Date, (all customer Info fields), Late Charge, Amount Paid.
I would like to have a Function to calculate the Total Invoice Balance so I can put it in several forms.
Here is the calculation:
([Invoice table]![Total Labor])+([Account Receivables Table]![Late Charges])-([Account Receivables Table]![Amount Paid])
I have no idea how to do this. Any help will be appreciated.
Thanks!!
Alexander!!!
I have two tables: Invoice table & Account Receivables Table. Here are the fields:
Invoice Table: Invoice#, Date,(all customer Info fields), Total Labor.
A/R Table: Invoice#, Date, (all customer Info fields), Late Charge, Amount Paid.
I would like to have a Function to calculate the Total Invoice Balance so I can put it in several forms.
Here is the calculation:
([Invoice table]![Total Labor])+([Account Receivables Table]![Late Charges])-([Account Receivables Table]![Amount Paid])
I have no idea how to do this. Any help will be appreciated.
Thanks!!
Alexander!!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Adjusted points to 60
Millos, If you're now satisfied with the answer you've received - you should grade it.
Thanks.
ASKER
That is the correct name of the invoice table. Do I have to declare the DB I am using?
Thanks!!
Alexander!!
Agongora@voicenet.com