Calculating VAT

Struggling to get this. I will get there but I keep getting the vat rate id returned. The relationship looks fine but I'm clearly missing something
 
Your invoices table is not enough for that query. Add the vatrates table to the query, and use the VAT Rate from the vat rates table. The relationships you created will link the invoices table with the vatrates table once you add it.
 
Ok, I will try that.
 
Been sat puzzling over this for hours and still not got it.

I'm now using a form to input the VAT rate and it's clear that, whilst the vat rate is displaying in the table, the query is using the vat rate ID as has been said and I can't see where I'm going wrong.

It won't beat me though, I will carry on reading and fiddling and will get it eventually.

Thanks for help.
 
I've reattached your sample db and made some pretty quick changes.

These were the changes:
1. In the Invoices table, have a look at the Lookup tab in the VAT_Rate's field property. I changed that from Combo box to text box and that will automatically get rid of the lookup field.
2. Manually set the relationship between VAT_Rate (in the Invoices table) and VAT Rate ID (in the vatrates table) via the Relationships pane.
3. In the query, I added the vatrates table and referred to the Vat Rate field from the vatrates table to get the vat rate.
 

Attachments

Ah, gee. That's brilliant, thanks.

I had that relationship: vat_rate ID to Vat rate, but was convinced it was wrong because it was the ID number that was being calculated instead of the vat rate.

I see in the invoice table now that sites, customers and vat rates are all ID numbers rather than the names as I had them and yet the query uses the vat rates.

I don't know if I would ever have got there, I was thinking of all sorts of workarounds but totally frustrated because I knew there was an answer.

Many thanks for help. What a great forum :)
 
I see in the invoice table now that sites, customers and vat rates are all ID numbers rather than the names as I had them and yet the query uses the vat rates.
Yeap, that's what the Lookup field masks. It simply hides "real" relationships.

You're welcome.
 
Yeap, that's what the Lookup field masks. It simply hides "real" relationships.

Every day's a school day with this stuff, there seems to be so much going on in the background; nothings simple!
 
Hello all. When calculating the gross amount from the net amount with a VAT rate of 25%, you multiply the net amount by 1 plus the VAT percentage. So, in your case, it should be:

Net Amount * (1 + VAT Percentage) = 200 euros * (1 + 0.25) = 200 euros * 1.25 = 250 euros

Your initial formula of multiplying the net amount by 1.25 is accurate and gives you the correct gross amount of 250 euros. The discrepancy in your second approach might be due to an incorrect interpretation of the percentages.
 
This is a 13 year old thread on a topic discussed many times. Recommend you find a more recent thread if you want to inform people- see the similar threads section at the bottom of this thread
 

Users who are viewing this thread

Back
Top Bottom