Thanks for the structure. The rst.Fields(Prop.Name).value is a new structure
to me. I'll give it a try on Wed. coming.
Also, can I import Prop.Name to cteate a new table. Obviously, I will do
this once and then populate this table with form fields. Do you have any
snippets for this table creation piece.
Thanks,
Chuck
> Hi Chuck,
>
[quoted text clipped - 87 lines]
>
> Please respond in the newgroup and not by email.
John Nurick - 21 Nov 2004 07:30 GMT
Hi Chuck,
For a one-off I'd probably just do something like this (pseudo code) to
get a textfile containing a list of the field names and types ,
especially as I'm not familiar with the Outlook object model
Dim strFN As "C:\Temp\PropNames.Text"
Dim objM as Outlook.MailItem
Dim objP as Outlook.UserProperty
Open strFN For Output As #1
Set objM = a MailItem containing all the custom properties you want
For Each objP in objM.Properties
Write #1, objP.Name, objP.Type 'and perhaps other stuff
Next
Close #1
Set objM = Nothing
Then I'd open the file in a text editor or word processor, and edit it
(with generous use of search and replace) to create a SQL DDL query that
I could execute to create the table (see "CREATE TABLE statement" in
Access help).
>Thanks for the structure. The rst.Fields(Prop.Name).value is a new structure
>to me. I'll give it a try on Wed. coming.
[quoted text clipped - 96 lines]
>>
>> Please respond in the newgroup and not by email.
--
John Nurick [Microsoft Access MVP]
Please respond in the newgroup and not by email.