Question Insert Column and populate based on criteria

simonharry

New member
Local time
Today, 21:57
Joined
Feb 17, 2011
Messages
3
HI all,

I have a DB that generates a report that contains amongst other things, country of origin.

What i need to do with this report is add in a column and in this inserted column, add either "STD" or "NIL" based on the country of origin, depending upon the tax rate that country is charged.

Can anyone help?

Thanks

Simon
 
Welcome to the forum.

How will you determine if the tax rate is standard or Nil? Is this stored in your DB somewhere :confused:
 
Cheers for the response.

What i have done is insert a new table with two columns, countries and vat code eg.

France STD
Germany STD
USA NIL

In effect i want the DB to use this table to say where the report query says the country is USA, pick NIL and place it in the cell in the new column.

Someone mentioned i could link the "country" field in my new table to the country one in the other table and then drag the VAT Code field in to make it populate but this appears to not work for me.
 
I'd suggest doing this in your query using an iif stmt to create the extra field, so the data will be available for your report.
 
Result! It works. Thats for your help people, much appreciated. My boss thinks i'm a genius now! haha
 

Users who are viewing this thread

Back
Top Bottom