B
Bonnie
Hi there. Using A02 on XP. Not a programmer but love learning stuff here.
1. I have a DB that I use to import a .txt file from a system we have and
it names the table for the contract number in a field [RunThisOne]&"Copy".
An AutoNum field is added on import.
2. I then export to an .xls file some fields with employee data including
the AutoNum field as [ID] but also export a field [SSN] with zeros in place
of the Social Security Numbers that are in the imported table (for privacy
purposes).
3. The client edits the file by changing DOB, DOH, LName, etc. They then
add new employees (including SSN's so we can set them up) and any data
available. The client then returns the file to us.
4. Next I import the .xls file back into Access and name it
[RunThisOne]&"Revised".
5. The final step is to run an update query on [RunThisOne]&"Revised" to
bring the SSN's back in and then export the Revised table to a comma
delimited .csv file that will be loaded back into the system from whence it
came.
What I have to do now is insert a step between 4 and 5 where I run a report
that shows which fields were edited from [RunThisOne] & "Copy" and
[RunThisOne] & "Revised". I know how to create a formula in Excel that
says: If FileName1.CellA1 equals FileName2.CellA1, "OK", "Edited" but wonder
what would be the best way to do it in Access. Or I could show the Revised
data but show it RED if changed, otherwise show it BLACK. I'm open to
suggestions. Want to go at it right rather than fight with an ugly
alternative.
Any advice would be appreciated. Thanks for your time!
1. I have a DB that I use to import a .txt file from a system we have and
it names the table for the contract number in a field [RunThisOne]&"Copy".
An AutoNum field is added on import.
2. I then export to an .xls file some fields with employee data including
the AutoNum field as [ID] but also export a field [SSN] with zeros in place
of the Social Security Numbers that are in the imported table (for privacy
purposes).
3. The client edits the file by changing DOB, DOH, LName, etc. They then
add new employees (including SSN's so we can set them up) and any data
available. The client then returns the file to us.
4. Next I import the .xls file back into Access and name it
[RunThisOne]&"Revised".
5. The final step is to run an update query on [RunThisOne]&"Revised" to
bring the SSN's back in and then export the Revised table to a comma
delimited .csv file that will be loaded back into the system from whence it
came.
What I have to do now is insert a step between 4 and 5 where I run a report
that shows which fields were edited from [RunThisOne] & "Copy" and
[RunThisOne] & "Revised". I know how to create a formula in Excel that
says: If FileName1.CellA1 equals FileName2.CellA1, "OK", "Edited" but wonder
what would be the best way to do it in Access. Or I could show the Revised
data but show it RED if changed, otherwise show it BLACK. I'm open to
suggestions. Want to go at it right rather than fight with an ugly
alternative.
Any advice would be appreciated. Thanks for your time!