Great, that worked! I put in through some loops since I have many tables and columns for it to go through, but the code came up with an error once it found a table that didn't have the specified column... Is there a way to easily bypass that so the code doesn't stop midway? Can I use some condition or something? Here's my code if that helps...
Sub AlterTables()
Dim Years As Integer, Drops As Integer
For Years = 0 To 2 'goes through the years 2000 to 2002
For Drops = 1 To 4 'goes through the drops 1 to 4
DoCmd.RunSQL "Alter Table [200" & Years & " Gifts Drop" & Drops & "] Drop [Year Code]"
DoCmd.RunSQL "Alter Table [200" & Years & " Gifts Drop" & Drops & "] Drop [List Type Code]"
DoCmd.RunSQL "Alter Table [200" & Years & " Gifts Drop" & Drops & "] Drop [Drop Code]"
DoCmd.RunSQL "Alter Table [200" & Years & " Gifts Drop" & Drops & "] Drop [Multi Code]"
DoCmd.RunSQL "Alter Table [200" & Years & " Gifts Drop" & Drops & "] Drop [Optimized Code]"
DoCmd.RunSQL "Alter Table [200" & Years & " Gifts Drop" & Drops & "] Drop [Remail Code]"
DoCmd.RunSQL "Alter Table [200" & Years & " Gifts Drop" & Drops & "] Drop [Date Code]"
DoCmd.RunSQL "Alter Table [200" & Years & " Gifts Drop" & Drops & "] Drop [Tracking Code]"
Next Drops
Next Years
End Sub
Thanks in advance
