Cannot see a problem with this Code
Dim db As Database
Dim tdf As TableDef
Dim fld As Field
Dim n As Integer
Set db = CurrentDb
DoCmd.SetWarnings False
DoCmd.OpenQuery ("qBelowStandard") **** Make Table Query
Set tdf = db.TableDefs("tBelowStandard")
MsgBox (tdf.Fields.Count) ******* Displays 72
For Each fld In tdf.Fields
n = n + 1
'If Right(fld.Name, 4) <> "Con" Then *** commented ot for test purposes
MsgBox (fld.OrdinalPosition)
tdf.Fields.Delete fld.Name
'End If
Next fld
MsgBox (tdf.Fields.Count) ******* Displays 36
MsgBox ********* Displays 36
The OrdinalPosition is incrementing in twos
Dim db As Database
Dim tdf As TableDef
Dim fld As Field
Dim n As Integer
Set db = CurrentDb
DoCmd.SetWarnings False
DoCmd.OpenQuery ("qBelowStandard") **** Make Table Query
Set tdf = db.TableDefs("tBelowStandard")
MsgBox (tdf.Fields.Count) ******* Displays 72
For Each fld In tdf.Fields
n = n + 1
'If Right(fld.Name, 4) <> "Con" Then *** commented ot for test purposes
MsgBox (fld.OrdinalPosition)
tdf.Fields.Delete fld.Name
'End If
Next fld
MsgBox (tdf.Fields.Count) ******* Displays 36
MsgBox ********* Displays 36
The OrdinalPosition is incrementing in twos