in order to get Subdatasheet changes to stick, you also need to turn off AutoCorrect.
Getting rid of Name AutoCorrect is a multi-step process:
File, Options, Current Database
1. uncheck Perform Name AutoCorrect (leave Track Name AutoCorrect checked) -- you might need to check it to uncheck Perform
2. Compact/Repair
3. Uncheck Name AutoCorrect
4. Compact/Repair
warm regards,
crystal
Microsoft Access Basics
https://www.goskills.com/Course/Access-Basics
40 lessons to empower you to build an application with Access
~ have an awesome day ~
On 11/8/2015 9:26 AM, wrmosca@comcast.net [MS_Access_Professionals] wrote:
Kevin
Here is a procedure I wrote years ago to turn off Subdatasheets in all tables.
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 MoscaDim db As DAO.DatabaseDim prop As DAO.PropertyDim propName As String, propVal As StringDim propType As Integer, i As Integer
On Error Resume Next
Set db = CurrentDb
propName = "SubDataSheetName"propType = 10propVal = "[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 Thendb.TableDefs(i).Properties(propName).Value = propValEnd If
If Err.Number = 3270 ThenErr.ClearSet prop = db.TableDefs(i).CreateProperty(propName)prop.Type = propTypeprop.Value = propValdb.TableDefs(i).Properties.Append propElseIf Err.Number <> 0 ThenResume NextEnd IfEnd If
End IfNext i
MsgBox "The " & propName & _" value for all non-system tables has been updated to " & propVal & "."
Set prop = NothingSet db = Nothing
End Function
I put the module that contains this and many other development routines in our Files folder. It's named DevToolbar.zip. If you import it into your database you can run any of the routines. There is also a 2003 toolbar that you can import. For veriosn 2007 and higher the toolbar will show up under Add-ins tab.
Regards,Bill Mosca, Founder - MS_Access_ProfessionalsMicrosoft Office Access MVPMy nothing-to-do-with-Access blog
---In MS_Access_Professionals@yahoogroups.com, <zhaoliqingoffice@163.com> wrote :
John-Changing the Subdatasheet property of all tables to [None], will this cause any problem to the tables? Thanks.Best Regards,Kevin
__._,_.___
Posted by: crystal 8 <strive4peace2008@yahoo.com>
| Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (5) |
.
__,_._,___
Tidak ada komentar:
Posting Komentar