delete all data in a row with condition on the row

  • Thread starter Thread starter sverre
  • Start date Start date
S

sverre

Hi

I have tried a sql that looks like this:

DELETE [Bokföringen mxg].TRADE_DATE, *
FROM [Bokföringen mxg]
WHERE ((([Bokföringen mxg].TRADE_DATE)=#5/16/2008#));

I want to achieve that access deletes all rows where condition on trade_date
is 16th may 2008.

The query does not work correct.

Could someone help me.

Sverre
 
sverre said:
Hi

I have tried a sql that looks like this:

DELETE [Bokföringen mxg].TRADE_DATE, *
FROM [Bokföringen mxg]
WHERE ((([Bokföringen mxg].TRADE_DATE)=#5/16/2008#));

I want to achieve that access deletes all rows where condition on
trade_date
is 16th may 2008.

The query does not work correct.

Could someone help me.

Sverre


Try ....

DELETE * FROM YourTableName WHERE YourFieldName = YourCriteria

Using your table and field names ...

DELETE *
FROM [Bokföringen mxg]
WHERE ((([Bokföringen mxg].TRADE_DATE)=#5/16/2008#));

That is to say, there's no need to specify a field or fields in the DELETE
clause.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top