Comparing Fields in gdb and shapefile, using Search Cursor List!

Discussion created by MLCouden on Apr 16, 2013
Latest reply on Apr 19, 2013 by MLCouden
I need some guidance. I am writing a program to search in a field from a shapefile and search in a field in a gdb. I am looking for a value in the gdb that is equal to the value in the shapefile. For Example: If field T_FLAG is 10H59 then it needs to go find that equal in the gdb field TFLAG 10H59. I have started a program I just need to know if I am headed in the right direction or am I way off. Thanks!!

import arcpy, os, sys, string
arcpy.env.overwriteOutput = True
fc = "K:\TASS\4_MAPPING_DATA_SUPPORT\Traffic_Mapping\Traffic_Count_Data\2011_Counts\2011_Annual_Stations\Final_Annual_Stations_2012.shp"
fields = ("TFLAG", "T_FLAG")
Value = "TFLAG" <> "T_FLAG"
where = "%s = '%s'" % (field, vlaue)
dhList = []
for w in ws: