jlokenvitz
New Member
- Joined
- Jul 24, 2015
- Messages
- 2
I am working on creating a database to track the contracts for my department, including all modifications and invoices as well as how much is left to pay on each contract. I have run into a problem, however. I have a query (UnobligatedQuery) with fields Contracts_ContractNumber, TotalAmount, TotalInvoiced, and Unobligated. I have a form called Contracts Query with fields ContractNumber (unbound dropdown list that pulls data from a query), DateAwarded, DeliveryDate, CCageCode, Status, StatusDate, PRNumber, PONumber, InitialAmount, SumOfFundingChange, TotalAmount, and Unobligated. This form also has a couple subforms but they are working fine.
The issue is with the Unobligated field in the form. I tried linking it directly to the Unobligated field in UnobligatedQuery but keep getting the #Name? error. I did some google searching and found a IIF formula (=IIf(IsNull([TotalAmount]-[Invoices Query]![TotalInvoiced]),0,([TotalAmount]-[Invoices Query]![TotalInvoiced]))) that is supposed to work in this situation but I get the same results. Any and all help with this situation is appreciated.
I am sure that the solution is something very simple that I am missing. Also, I was looking around to try to figure out how to attach the database to this post to help the troubleshooting but have not found how to insert anything other than pictures and video. I can email the database to someone if that will help. Thank you all in advance for your help.
The issue is with the Unobligated field in the form. I tried linking it directly to the Unobligated field in UnobligatedQuery but keep getting the #Name? error. I did some google searching and found a IIF formula (=IIf(IsNull([TotalAmount]-[Invoices Query]![TotalInvoiced]),0,([TotalAmount]-[Invoices Query]![TotalInvoiced]))) that is supposed to work in this situation but I get the same results. Any and all help with this situation is appreciated.
I am sure that the solution is something very simple that I am missing. Also, I was looking around to try to figure out how to attach the database to this post to help the troubleshooting but have not found how to insert anything other than pictures and video. I can email the database to someone if that will help. Thank you all in advance for your help.