I have 2 tables in Access97. One is an access table (je_entry) and the other is linked in Access via ODBC (sysadm_journal).
I want to append data to the sysadm_journal table from je_entry. However, je_entry does not have all the fields as sysadm_journal. And to add to that, all fields must be filled in the sysadm_journal. I know that I can just fill most of the fields with 0's, except that I want the transaction_id field (which is the primary key) in the sysadm_journal table to be filled when my appended records move in.
I figure that I must create another field in the table I am appending from and I would like to take the last number of the sysadm_journal table, increment it and fill those numbers in the je_entry table before moving into the sysadm_journal table.
I created a query that looks up the last number in the sysadm_journal.transaction_id field and places it into a new table.
I want to get that number and add it to my je_entry table, but don't know how to increment the numbers. Should I do that in the query that gets that last number? What is the syntax for this?
I want to append data to the sysadm_journal table from je_entry. However, je_entry does not have all the fields as sysadm_journal. And to add to that, all fields must be filled in the sysadm_journal. I know that I can just fill most of the fields with 0's, except that I want the transaction_id field (which is the primary key) in the sysadm_journal table to be filled when my appended records move in.
I figure that I must create another field in the table I am appending from and I would like to take the last number of the sysadm_journal table, increment it and fill those numbers in the je_entry table before moving into the sysadm_journal table.
I created a query that looks up the last number in the sysadm_journal.transaction_id field and places it into a new table.
I want to get that number and add it to my je_entry table, but don't know how to increment the numbers. Should I do that in the query that gets that last number? What is the syntax for this?