D
Dave C
I'm trying to write a query that will delete customer records from the
Customer table (tblCustomers) if they have no related records in the Bookings
table (tblBookings). When I run the query the message "Specify the table
containing the records you want to delete" is displayed. I set the query with
two fields - intCustomerID (tbl Customers) and intBookingID (tblBookings)
with the intBookingID criteria being "Is Null".
The SQL query is as follows:
DELETE tblCustomers.intCustomerID, tblBookings.intBookingID
FROM tblCustomers LEFT JOIN tblBookings ON tblCustomers.intCustomerID =
tblBookings.intCustomerID
WHERE (((tblBookings.intBookingID) Is Null));
I would appreciate any suggestions as to what I need to do to resolve this
problem.
Thanks in anticipation ..... Dave
Customer table (tblCustomers) if they have no related records in the Bookings
table (tblBookings). When I run the query the message "Specify the table
containing the records you want to delete" is displayed. I set the query with
two fields - intCustomerID (tbl Customers) and intBookingID (tblBookings)
with the intBookingID criteria being "Is Null".
The SQL query is as follows:
DELETE tblCustomers.intCustomerID, tblBookings.intBookingID
FROM tblCustomers LEFT JOIN tblBookings ON tblCustomers.intCustomerID =
tblBookings.intCustomerID
WHERE (((tblBookings.intBookingID) Is Null));
I would appreciate any suggestions as to what I need to do to resolve this
problem.
Thanks in anticipation ..... Dave