G
Gwen
Please assist.
I am using the code below to change the field positions:
Function chgfldpos(strTableName As String)
Dim db As Database
Dim tblXL As TableDef
Set db = currentdb
Set tblXL = db.TableDefs(strTableName)
With tblXL
..Fields("fld1").OrdinalPosition = 0
..Fields("fld2").OrdinalPosition = 4
..Fields("fld3").OrdinalPosition = 5
End With
End Function
It's not working at all.
Please help
Thanks
I am using the code below to change the field positions:
Function chgfldpos(strTableName As String)
Dim db As Database
Dim tblXL As TableDef
Set db = currentdb
Set tblXL = db.TableDefs(strTableName)
With tblXL
..Fields("fld1").OrdinalPosition = 0
..Fields("fld2").OrdinalPosition = 4
..Fields("fld3").OrdinalPosition = 5
End With
End Function
It's not working at all.
Please help
Thanks