PC Review


Reply
Thread Tools Rate Thread

Add Field Descriptions, New Table

 
 
Bob
Guest
Posts: n/a
 
      3rd Aug 2003
I use Office XP Developer with W2K.

We are currently working on a questionnaire database. We paste field
descriptions from a Word document into the description, but this is not
fun - there are hundreds of questions...

Below p/o the code used to create the new table. What is the syntax to add
descriptions for each field?

Sub CreateTable()

Dim tbl As New Table
Dim cat As New ADOX.Catalog

'Open the catalog.
cat.ActiveConnection = _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=D:\My Documents\HIA\HIA_be.mdb"

tbl.Name = "tblHIA03"

tbl.Columns.Append "HIA03Q1", adVarWChar, 25 ' Person reporting
information
tbl.Columns.Append "HIA03Q2", adVarWChar, 25 ' Other (SPECIFY
RELATIONSHIP)
cat.Tables.Append tbl


End Sub

Thanks for looking.

Bob


 
Reply With Quote
 
 
 
 
Duane Hookom
Guest
Posts: n/a
 
      3rd Aug 2003
You might want to download and review "At Your Survey" available at
http://www.rogersaccesslibrary.com/O...p#Hookom,Duane. This
application allows you to add any number of questions as records rather than
fields.

--
Duane Hookom
MS Access MVP


"Bob" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I use Office XP Developer with W2K.
>
> We are currently working on a questionnaire database. We paste field
> descriptions from a Word document into the description, but this is not
> fun - there are hundreds of questions...
>
> Below p/o the code used to create the new table. What is the syntax to

add
> descriptions for each field?
>
> Sub CreateTable()
>
> Dim tbl As New Table
> Dim cat As New ADOX.Catalog
>
> 'Open the catalog.
> cat.ActiveConnection = _
> "Provider=Microsoft.Jet.OLEDB.4.0;" & _
> "Data Source=D:\My Documents\HIA\HIA_be.mdb"
>
> tbl.Name = "tblHIA03"
>
> tbl.Columns.Append "HIA03Q1", adVarWChar, 25 ' Person reporting
> information
> tbl.Columns.Append "HIA03Q2", adVarWChar, 25 ' Other (SPECIFY
> RELATIONSHIP)
> cat.Tables.Append tbl
>
>
> End Sub
>
> Thanks for looking.
>
> Bob
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Make table field descriptions appear in status bar XP Microsoft Access Form Coding 1 21st Dec 2007 10:53 PM
Setting Table Field Descriptions =?Utf-8?B?Um9i?= Microsoft Access VBA Modules 4 29th Jul 2007 12:24 AM
Exporting table with field names and descriptions =?Utf-8?B?SkEgUGVhY2hyb3Nl?= Microsoft Access 0 26th Sep 2005 06:32 PM
table field descriptions Ken Pinard Microsoft Access VBA Modules 2 8th Jun 2004 10:41 PM
Re: Add Field Descriptions, New Table Douglas J. Steele Microsoft Access VBA Modules 0 3rd Aug 2003 09:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:42 PM.