Advertisement
Advertisement
| 04.27.2008 at 05:07PM PDT, ID: 23357524 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: |
For Each d in DBEngine(0)(0).Containers!Databases.Documents:?d.Name:next AccessLayout MSysDb SummaryInfo UserDefined |
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 04.27.2008 at 05:17PM PDT, ID: 21450862 |
| 04.27.2008 at 06:44PM PDT, ID: 21451088 |
| 04.27.2008 at 07:34PM PDT, ID: 21451258 |
| 04.27.2008 at 08:14PM PDT, ID: 21451384 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: |
Sub TestHyp()
Dim tdf, tdfs
With CurrentDb
Set tdf = .TableDefs!Table1
' Set tdfs = .TableDefs ' uncomment this
End With
Debug.Print tdf.Fields.Count ' and this works
Set tdfs = Nothing
Debug.Print tdf.Fields.Count ' but not anymore
End Sub
|
| 04.28.2008 at 04:57AM PDT, ID: 21453094 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: |
Function DisplayContainers(strDatabase As String, intCollection As Integer) As Integer
Dim DefaultWorkspace As Workspace
Dim CurrentDatabase As Database
Dim MyContainer As Container
Dim MyDocument As Document
Dim i As Integer
Dim j As Integer
Set DefaultWorkspace = DBEngine.Workspaces(0)
If strDatabase = "" Then
Set CurrentDatabase = DefaultWorkspace.Databases(0)
Else
Set CurrentDatabase = DefaultWorkspace.OpenDatabase(strDatabase)
End If
If intCollection = -1 Then
For j = 0 To CurrentDatabase.Containers.Count - 1
Set MyContainer = CurrentDatabase.Containers(j)
Debug.Print ">> Container: "; j; " "; MyContainer.Name;
Debug.Print ""
Next j
Else
Set MyContainer = CurrentDatabase.Containers(intCollection)
For i = 0 To MyContainer.Documents.Count - 1
Set MyDocument = MyContainer.Documents(i)
Debug.Print " > Document: "; MyDocument.Name;
Debug.Print ""
Debug.Print " > Owner: "; MyDocument.Owner;
Debug.Print ""
Next i
End If
If strDatabase <> "" Then
CurrentDatabase.Close
Set CurrentDatabase = Nothing
End If
DisplayContainers = True
End Function
|
| 04.28.2008 at 06:31AM PDT, ID: 21453743 |
| 04.28.2008 at 06:55AM PDT, ID: 21453982 |
| 04.28.2008 at 08:32AM PDT, ID: 21454945 |
1: 2: 3: 4: 5: 6: 7: 8: 9: |
Dim prp
Dim d As Document
For Each d In DBEngine(0)(0).Containers!Databases.Documents
Debug.Print "--" & d.Name & "--"
For Each prp In d.Properties
Debug.Print prp.Name
Next
Debug.Print vbCrLf & vbCrLf
Next
|
| 04.28.2008 at 09:25AM PDT, ID: 21455388 |
| 04.28.2008 at 09:50AM PDT, ID: 21455549 |
| 04.28.2008 at 11:04AM PDT, ID: 21456112 |
| 04.28.2008 at 11:28AM PDT, ID: 21456360 |
| 04.28.2008 at 07:56PM PDT, ID: 21459327 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: |
' dbSecDBCreate 0 ---- ---- ---- ---- ---1 : &H1 ' dbSecDBOpen 0 ---- ---- ---- ---- --1- : &H2 ' dbSecDBExclusive 0 ---- ---- ---- ---- -1-- : &H4 ' dbSecDBAdmin 0 ---- ---- ---- ---- 1--- : &H8 ' dbSecNoAccess 0 ---- ---- ---- ---- ---- : &H0 ' dbSecCreate 0 ---- ---- ---- ---- ---1 : &H1 ' dbSecReadDef 0 ---- ---- ---- ---- -1-- : &H4 ' dbSecRetrieveData 0 ---- ---- ---- ---1 -1-- : &H20 ' dbSecInsertData 0 ---- ---- ---- --1- ---- : &H32 ' dbSecReplaceData 0 ---- ---- ---- -1-- ---- : &H64 ' dbSecDeleteData 0 ---- ---- ---- 1--- ---- : &H128 ' dbSecDelete 0 ---1 ---- ---- ---- ---- : &H65536 ' dbSecWriteDef 0 ---1 ---- ---- ---- 11-- : &H65548 ' dbSecReadSec 0 --1- ---- ---- ---- ---- : &H131072 ' dbSecWriteSec 0 -1-- ---- ---- ---- ---- : &H262144 ' dbSecWriteOwner 0 1--- ---- ---- ---- ---- : &H524288 ' dbSecFullAccess 0 1111 1111 1111 1111 1111 : &H1048575 ' AccessLayout 0 ---- ---- ---- ---- ---- : &H0 ' MSysDb 0 -11- ---- ---- ---- 111- : &H393230 ' SummaryInfo 0 ---1 ---- ---- ---- ---- : &H65536 ' UserDefined 0 ---1 ---- ---- ---- ---- : &H65536 |
| 04.28.2008 at 08:33PM PDT, ID: 21459475 |
| 04.30.2008 at 08:08PM PDT, ID: 21476304 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: |
Function PrpValue(pprp As DAO.Property) As String
On Error Resume Next
PrpValue = Nz(pprp.Value, "(null)")
If Err Then
PrpValue = "#Error " & Err.Number
Err.Clear
End If
End Function
Sub DatabaseProperties()
Dim doc As DAO.Document
Dim prp As DAO.Property
Dim i As Integer
With CurrentDb
Debug.Print .Name
For Each prp In .Properties
Debug.Print " "; prp.Name; ":"; Tab(40); PrpValue(prp)
Next prp
With .Containers("Databases")
Debug.Print .Name
For Each prp In .Properties
Debug.Print " "; prp.Name; ":"; Tab(40); PrpValue(prp)
Next prp
End With
For Each doc In .Containers("Databases").Documents
Debug.Print doc.Name
i = 0
For Each prp In doc.Properties
i = i + 1
If i > 8 Then
Debug.Print " "; prp.Name; ":";
Debug.Print Tab(40); PrpValue(prp)
End If
Next prp
Next doc
End With
End Sub
|
| 04.30.2008 at 10:10PM PDT, ID: 21476619 |