|
-
Feb 16th, 2006, 10:55 AM
#1
Thread Starter
Junior Member
-
Feb 16th, 2006, 11:05 AM
#2
Re: how to read table-description from MDB?
You want
Code:
.Fields("Name").Properties("Description")
-
Feb 17th, 2006, 01:31 AM
#3
Thread Starter
Junior Member
Re: how to read table-description from MDB?
thanks, Hack!
But I don't need to read description of TableFields, I need description of the whole table.
I've also tried:
VB Code:
CurrentDb.TableDefs("Table1").Properties("Description")
But there aren't such item in this collection "Properties(...)" for TableDef
Could you be so kind to find this description exactly for whole table?
kind regards,
Baloo.
-
Feb 17th, 2006, 03:13 AM
#4
Re: how to read table-description from MDB?
This has always worked for me...
VB Code:
MsgBox Application.CurrentDb.TableDefs("Table1").Properties("Description").Value
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 17th, 2006, 03:58 AM
#5
Thread Starter
Junior Member
Re: how to read table-description from MDB?
RobDog888, thanks a lot for your attention
but I've checked the whole collection "Properties(...)" for TableDef:
VB Code:
Dim propItem As Property
For Each propItem In jetDB.TableDefs(strTableName).Properties
Debug.Print propItem.Name & " = " & propItem.Value
Next
and I've got only these Properties:
Name = Table1
Updatable = False
DateCreated = 06.12.2005 11:28:22
LastUpdated = 16.02.2006 16:41:56
Connect = dBase III;HDR=NO;IMEX=2;DATABASE=C:\MyTables
Attributes = 1073741824
SourceTableName = Table1.dbf
RecordCount = -1
ValidationRule =
ValidationText =
ConflictTable =
ReplicaFilter =
Orientation = 0
OrderByOn = False
DefaultView = 2
there is no "Description" in this list
Maybe exist another way to get this "Description" for Table?
kind regards,
Baloo.
-
Feb 17th, 2006, 05:59 AM
#6
Thread Starter
Junior Member
Re: how to read table-description from MDB?
o sorry, RobDog888, I didn't described all details, you was absolutely right:
I've tried it in Access:
VB Code:
Application.CurrentDb.TableDefs("Table1").Properties("Description").Value
and in Access IT WORKS!
But I'm working in WORD.VBA and trying to read MDB from WORD.VBA
And threre is no such Property in WORD as stated previous message.
Could you pls say - how can I read this Property "Description" for Table exactly from WORD?
kind regards,
Baloo.
-
Feb 17th, 2006, 12:27 PM
#7
Re: how to read the MDB-Table description from WORD?
Sure, just add a reference to Access xx.0 Object Library in your Words VBA IDE and use some code to create a new instance of Access application and open you db. Then the code I posted will work.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|