Two tables
tblBlueFlags
BlueFlagID AN PK
JobID Number (Long)
JobType1 Number
JobType2 Number
BlueFlagDate Date
tblJobs
JobID AN PK
IniDate Date
JobType Number (Long)
DepartmentID Number (Long)
Other fields...
frmJobs is used to populate the tblJObs.
A combo box (cbxJobType) is used to populate the field JobType with a value from the JobTypes table.
Here's what I want to do:
If the user uses frmJobs to change a JobType I want to create a record in tblBlueFlags table that holds the new JobType in JobType2 and the previous JobType in JobType1.
Example:
JobID: 706
IniDate: 2/15/2012
JobType: 4
Department: 3
User opens frmJobs and changes the the JobType of JobID 706 from 4 to 6.
This needs to trigger a record in tblBlueFlags
JobID: 706
JobType1: 4
JobType2: 6
BlueFlagDate: 5/23/2012
I know how to write the SQL string for inserting the record into the table I am not sure how to get the pre-update value of JobType.