View Single Post
  #2  
Old April 28th, 2010, 09:12 PM posted to microsoft.public.access.tablesdbdesign
XPS350
external usenet poster
 
Posts: 69
Default Auto populate field in table

On 28 apr, 22:02, "gm via AccessMonster.com" u49152@uwe wrote:
I have an Access data base that has acumulated 7 years of HR info. We plan to
moving this info
to HR Application. The new application has a field called [EmpStat}.

On my access data base I do not have a [EMPStat] field but I do have a
[Termation date].

Because we have a lot of employees that have terminated it would be great to
import into
the HR program the word "Terminated" into [EMPStat].

How can I do the following in a table: create a new column and call it
[empstat] then say

If [Termination Date] Is Not Null put "Terminated" in the [empstat] field.

If I'm able to do this it would eliviate a lot of manual labor

Thanks

GM

--
Message posted via AccessMonster.comhttp://www.accessmonster.com/Uwe/Forums.aspx/access-tablesdbdesign/20...


After you added the EmpStat field you can run a query like:
UPDATE YourTabel SET EmpStat="Terminated" WHERE NOT
IsNull([Termination Date])

Groeten,

Peter
http://access.xps350.com