adding 2% to whole table 
Author Message
 adding 2% to whole table

Hello,

I got a directory with a number of databases files in it. Every file has one
table and the dimensions of all different tables (files) are different.
What I want to do is add 2% to every field of every record in every table, I
only managed to get some fields out of it, and caus I'm no DB expert, I
thought, maybe someone of u can help me.

Thanx

Niels



Tue, 24 Jun 2003 17:39:48 GMT  
 adding 2% to whole table
This SQL query would do something like that:

UPDATE Table1 SET Table1.Field1 = [Field1]*1.02, Table1.Field2 =
[Field2]*1.02;

In Access it is called an 'Update Query'

If you don't know the number of fields, you may have to write some vb code
to find out.



Quote:
> Hello,

> I got a directory with a number of databases files in it. Every file has
one
> table and the dimensions of all different tables (files) are different.
> What I want to do is add 2% to every field of every record in every table,
I
> only managed to get some fields out of it, and caus I'm no DB expert, I
> thought, maybe someone of u can help me.

> Thanx

> Niels



Wed, 02 Jul 2003 06:19:40 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. attachments.add - Only need Shortcut, not whole file

2. copying whole tables (A2)

3. Open a doc, grab a range without having the whole doc being tabled

4. fill a whole table

5. coloring whole row in a table

6. Checking if a record is duplicated before adding or during adding it to a table

7. need something like foreach record in table - add record to another table

8. need help please:joined tables,add new entries based on one table columns

9. Cannot add record to Visual Foxpro table after deleting all records in table

10. need help please:joined tables,add new entries based on one table columns

11. Adding a record to a table

12. Adding data to table through Recordsets

 

 
Powered by phpBB® Forum Software