Adding statistics information to a .dbf file. (9.3)

Discussion created by bvadrich on Jun 17, 2011
Latest reply on Jun 22, 2011 by kimo

I intend to loop through the following code(or something similar), changing the FID=_ each time. By doing this I hope build a file with entries for each run through the loop. As the program stands however it will overwrite my data each time it goes through the loop.

How do I Append the info gathered by gp.Statistics_analysis to my dbf file instead of overwriting my file with the new data?

gp.Workspace = "C:/Data"
gp.SelectLayerByAttribute("DMA_lyr", "NEW_SELECTION", "FID = 0")
gp.Intersect_analysis("DMA_lyr; pipe_layer.lyr ", "pipe_in_one", "#", 0.1, "LINE")

gp.Statistics_analysis("pipe_in_one.dbf", "out_table.dbf", "SHAPE_Le_1" + " SUM")

Thank you,