Below is code I messing with.
Works just fine....
What I need is a way to tell if the record is simply a "new" record, or if the current records was simply just "updated"
With the below piece of code... How can I get the field "ChangeIndicator" to be populated with an "A" for any new record that was added, an "U" for a any record that was updated/edited, and Null for any record that didn't change at all...??
Any examples or suggestions...?
Thanks in advance,
jcw5107
If rstShoes.NoMatch Then
'Add a new Record
rstShoes.AddNew
rstShoes!StockNumber = rstImport!StockNumber
rstShoes!ShoeName = rstImport!ShoeName
rstShoes!Color = rstImport!Color
rstShoes!Width = rstImport!Width
rstShoes!Gender = rstImport!Gender
rstShoes!Brand = rstImport!Brand
rstShoes!ChangeIndicator = ???????
rstShoes!CurrentDate = rstImport!CurrentDate
rstShoes!CurrentTime = rstImport!CurrentTime rstShoes.Update
Else
'Update Record
rstShoes.Edit
rstShoes!StockNumber = rstImport!StockNumber
rstShoes!ShoeName = rstImport!ShoeName
rstShoes!Color = rstImport!Color
rstShoes!Width = rstImport!Width
rstShoes!Gender = rstImport!Gender
rstShoes!Brand = rstImport!Brand
rstShoes!ChangeIndicator = ??????
rstShoes!CurrentDate = rstImport!CurrentDate
rstShoes!CurrentTime = rstImport!CurrentTime
rstShoes.Update
End If
Works just fine....
What I need is a way to tell if the record is simply a "new" record, or if the current records was simply just "updated"
With the below piece of code... How can I get the field "ChangeIndicator" to be populated with an "A" for any new record that was added, an "U" for a any record that was updated/edited, and Null for any record that didn't change at all...??
Any examples or suggestions...?
Thanks in advance,
jcw5107
If rstShoes.NoMatch Then
'Add a new Record
rstShoes.AddNew
rstShoes!StockNumber = rstImport!StockNumber
rstShoes!ShoeName = rstImport!ShoeName
rstShoes!Color = rstImport!Color
rstShoes!Width = rstImport!Width
rstShoes!Gender = rstImport!Gender
rstShoes!Brand = rstImport!Brand
rstShoes!ChangeIndicator = ???????
rstShoes!CurrentDate = rstImport!CurrentDate
rstShoes!CurrentTime = rstImport!CurrentTime rstShoes.Update
Else
'Update Record
rstShoes.Edit
rstShoes!StockNumber = rstImport!StockNumber
rstShoes!ShoeName = rstImport!ShoeName
rstShoes!Color = rstImport!Color
rstShoes!Width = rstImport!Width
rstShoes!Gender = rstImport!Gender
rstShoes!Brand = rstImport!Brand
rstShoes!ChangeIndicator = ??????
rstShoes!CurrentDate = rstImport!CurrentDate
rstShoes!CurrentTime = rstImport!CurrentTime
rstShoes.Update
End If