Hi, I am modifying a database which was written by someone else.
The database it used to take bookings from customers.
The booking form saves to the table tbl_(dump)Partybookings
The contents of this table are then moved to tbl_Partybookings and the dump table entry deleted.
It uses this VB Code:
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
SQLStr = "INSERT INTO tbl_Partybookings ( [Date], Title, PartyName.....etc
SQLSrt = SQLStr & " SELECT [tbl_(dump)PartyBookings].Date, [tbl_(dump)PartyBookings.Title....etc
The problem is that the SELECT line is too long and I need to add more fields to be copied.
Being a bit of a novice, is there an easy way to carry this onto the next line or simplify the above code.
Thanks,
Rich.
The database it used to take bookings from customers.
The booking form saves to the table tbl_(dump)Partybookings
The contents of this table are then moved to tbl_Partybookings and the dump table entry deleted.
It uses this VB Code:
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
SQLStr = "INSERT INTO tbl_Partybookings ( [Date], Title, PartyName.....etc
SQLSrt = SQLStr & " SELECT [tbl_(dump)PartyBookings].Date, [tbl_(dump)PartyBookings.Title....etc
The problem is that the SELECT line is too long and I need to add more fields to be copied.
Being a bit of a novice, is there an easy way to carry this onto the next line or simplify the above code.
Thanks,
Rich.