Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete Query

Status
Not open for further replies.

gnb621

Technical User
Jun 5, 2003
7
US
I have 2 tables.

April 2003 contains the following:
Product Code Warehouse Month $OH

Default contains the following:
Product Code Warehouse

I would like to delete from April 2003 all the records that match those in Default. I've never used a delete query. Can someone help me?
 
Delete * from April 2003 where ProductCode in (select ProductCode from Default) and warehouse in (select warehouse from Default)
 
When I try to run the query a window pops up to enter parameter value (ProductCode).

 
It is because your table has a space in the name, and it doesn't in the query. Put brackets around it with a space, and you should be fine.

Delete * from April 2003 where [Product Code] in (select [Product Code]

Dodge20
 
Thanks. That worked but now I get the following error:

Operation must use an updatable query. (Error 3073)

Never seen this before. What do I do?

[sad]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top