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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete record if Material IsNull 1

Status
Not open for further replies.

vamoose

Programmer
Oct 16, 2005
320
MX
Hello, I am importing an Excel 2000 document into Access 2000. The resulting table now has blank records contained within. I am trying to use the following code to delete these blank records:

DoCmd.RunSQL "Delete * from Imported where Material = IsNull"

Or

DoCmd.RunSQL "Delete * from Imported where Material = " & Isnull

But the IsNull does not work, what is the proper way to code this expression if the data field contains no data?

Thank you.

 
Hi.....

Considering you have a table called Imported and aleast one of those fields is called Material

DoCmd.RunSQL "DELETE * FROM Imported WHERE (([Material] Is Null));"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top