![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm copying record to, but need to negate the Money and use todays date as TheDate in the new record, but copying all of the rest of the record verbatim. The statement needs to not refer to the fields that don't change by name as more fields may be added later and this code needs to keep working properly without having to be modified to deal with table schema growth. Copying all the other fields verbatim! That's because of poor |
|
of that" solution, but no one else seems to be able come up with anything either. That's because you are trying to design a spreadsheet instead of |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Hey Bob, I know that's bad DB design, but I didn't design it, and I can't change it. This table is really more of a list/log than a spreadsheet. Things are appended but never taken out. Also my example was designed to be easy for whoever read the question to comprehend without having to think about that the actual table that I'm working on has foreign keys in it that is part of the data that is copied verbatim. It would be kinda silly to have a table that was just foreign keys, but that's what it would take to be really well designed (in the theoretical sense) if it were more than just one foreign key. Anyway, I have a table* that I need this type of operation done on and it seems too simple for there not to be a swift way to do it. * In a product in thousands of offices around the US and I can't change the schema except for just tacking stuff on top of what's already there (and even then only on special occasions) as per company rules. You can do it in code. Set up a recordset that takes the current |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |