Hi, I have the following table in MsAccessEmployeesAempId integer,empName varchar(60),empAge integer,empStatus char(1) - can be N,D or S - New, Deleted or Shifted
and the following in Sql2005 EmployeesBId smallint,Name varchar(60),Age int,Status char(1) - Bydefault 'N'
I have written a Foreach File package that populates the sql server tables (EmployeesB) from Access(EmployeesA). However i want to check for a condition now. If empStatus = N in EmployeesA, then insert a new record in EmployeesBIf empStatus = D in EmployeesA, then search for that field in the EmployeesB by passing empname and age and if found, mark the Status field in EmployeesB as 'D'If empStatus = S in EmployeesA, then search for that field in the EmployeesB by passing empname and age and if found, mark the Status as 'S' in EmployeesB and insert a new row.How do I do it for each table each row in EmployeesA using a foreach file loop?Thanks,lolsron