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!

Drop row in Access 2003 table 1

Status
Not open for further replies.

vamoose

Programmer
Oct 16, 2005
320
MX
I am wondering how to delete a row in an Access table if all the column cells are empty. For example, to drop the column I use this:
DoCmd.RunSQL "ALTER TABLE SAP_Import DROP COLUMN [F10]"
Is there something similar to drop an empty row ?

Thank you
 
The table consists of a row/record of data then another row/record of data with an empty row/recond in between seperating the data. I want to delete the entire row of empty data not the data itself.
 
if you 100% for sure that on the rows that have data 1 field is always filled

then

Code:
docmd.runsql "Delete * from TableName where fieldnamd is null"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top