notebinder
New member
- Local time
- Today, 09:21
- Joined
- Jan 19, 2019
- Messages
- 4
I have 2 simple tables with 3 columns and an autonumber primary key/ID column. One table is a TEMPLATE table from which I copy data into another NOTE table to create a new record. During this copy, I rename the template name field to create the new entry name. In MySql, this was very simple SQL:
INSERT INTO notes (name, note, data_size)
SELECT 'newname' AS name, note, data_size FROM templates WHERE id = 99
The new row in the NOTES table is now named newname. This SQL does not work in Access and I can't see a way around it. Anyone have any ideas?
INSERT INTO notes (name, note, data_size)
SELECT 'newname' AS name, note, data_size FROM templates WHERE id = 99
The new row in the NOTES table is now named newname. This SQL does not work in Access and I can't see a way around it. Anyone have any ideas?