P
Pat
I've got the code, it compiles, but when I run it I
get "Invalid Operation".
Public Sub pChangeSize()
On Error GoTo pChangeSizeError
Dim db As Database
Dim tableName As String
Dim tbd As TableDef
Dim thisField As Field
Stop
Set db = CurrentDb
Set tbd = db.TableDefs("tempWebInspReport")
Set thisField = tbd.Fields("Estab_id")
With tbd
thisField.Size = thisField.Size + 1
End With
pChangeSizeError:
MsgBox Error$, 0, "Restaurant Database"
Exit Sub
End Sub
I have about 100 files to change the size of 1 field in.
Can you help, please?
Thanks!
Pat Siers
get "Invalid Operation".
Public Sub pChangeSize()
On Error GoTo pChangeSizeError
Dim db As Database
Dim tableName As String
Dim tbd As TableDef
Dim thisField As Field
Stop
Set db = CurrentDb
Set tbd = db.TableDefs("tempWebInspReport")
Set thisField = tbd.Fields("Estab_id")
With tbd
thisField.Size = thisField.Size + 1
End With
pChangeSizeError:
MsgBox Error$, 0, "Restaurant Database"
Exit Sub
End Sub
I have about 100 files to change the size of 1 field in.
Can you help, please?
Thanks!
Pat Siers