hi KCressy,
First of all, you need to loop thru the feature class and compare each row[FIELD] value to the table.
If they are different, then grab the tables row[FIELD value and use it to update the feature class.
Here is an example:
table = "c:/mydb.mdb/myTable"
fc = "c:/mydb.mdb/myFC"
#common field
cField = "FIELD1"
#other fields
F2 = "FIELD2"
F3 = "FIELD3"
F4 = "FIELD4"
gp.arcgisscripting.create()
rows = gp.updatecursor(fc)
row = rows.next()
while row:
#grab the common field value
fcValue = row.getvalue(cField)
#grab the rest of the fields value
fcF2 = row.getvalue(F2)
fcF3 = row.getvalue(F3)
fcF4 = row.getvalue(F4)
#Now loop thru the table and compare the values
tableRows = gp.searchcursor(table)
tableRow = tableRows.Next()
while tableRow:
#grab the common field value
tableValue = tableRow.getvalue(cField)
#grab the rest of the table fields values(just like what we did for the fc above)
tableF1 = tableRow.getvalue(FIELD)
tableF2 = tableRow.getvalue(FIELD2)
......
#Now compare table to fc using the common field
if str(tableValue) == str(fcValue):
#compare the rest of the fields the same way
e.g if str(fcF2) <> str(tableF1):
#if they are not the same then update the fc with the table value
row.setvalue(F2, tableF1) #(or row.FIELDNAME = tableF1 also works)
#continue to compare the rest of the fields values and update accordingly, if necessary
#after changing all the values
rows.updateRow(row)
row2 = rows2.Next()
row = rows.Next()
I hope this example helps. Otherwise let me know what the problem is.
Bernard
GIS Programmer/Analyst