I forgot to post the function.
Public Function dev_TbrTurnOffSubDataSheets()
'Purpose : Access sets all tables' SubDataSheets to Auto which slows up loading time.
' This function will set the property to [none].
'DateTime : 1/14/2004 09:20
'Author : Bill Mosca
Dim db As DAO.Database
Dim prop As DAO.Property
Dim propName As String, propVal As String
Dim propType As Integer, i As Integer
On Error Resume Next
Set db = CurrentDb
propName = "SubDataSheetName"
propType = 10
propVal = "[NONE]"
For i = 0 To db.TableDefs.Count - 1
If (db.TableDefs(i).Attributes And dbSystemObject) = 0 Then
If db.TableDefs(i).Properties(propName).Value <> propVal Then
db.TableDefs(i).Properties(propName).Value = propVal
End If
If Err.Number = 3270 Then
Err.Clear
Set prop = db.TableDefs(i).CreateProperty(propName)
prop.Type = propType
prop.Value = propVal
db.TableDefs(i).Properties.Append prop
Else
If Err.Number <> 0 Then
Resume Next
End If
End If
End If
Next i
MsgBox "The " & propName & _
" value for all non-system tables has been updated to " & propVal & "."
Set prop = Nothing
Set db = Nothing
End Function