PC Review


Reply
Thread Tools Rate Thread

Adding a field to an existing table via a module

 
 
=?Utf-8?B?RGVlY2U=?=
Guest
Posts: n/a
 
      2nd Mar 2005
I am trying to add a field to an existing table via a module as part of an
application. I am a new VB user and am unsure of the sytax to use. Can
anyone help.

Thanks

 
Reply With Quote
 
 
 
 
Alex Dybenko
Guest
Posts: n/a
 
      4th Mar 2005
Here a code snipset:

dbsData.TableDefs.Refresh
Set tdf = dbsData.TableDefs("MyTable")
Set fld = tdf.CreateField("NewField", dbText, 50)
tdf.fields.Append fld
Set tdf = Nothing
HTH
--
Alex Dybenko (MVP)
http://Alex.Dybenko.com
http://www.PointLtd.com



"Deece" <(E-Mail Removed)> wrote in message
news:49737942-2AC1-4B92-9281-(E-Mail Removed)...
>I am trying to add a field to an existing table via a module as part of an
> application. I am a new VB user and am unsure of the sytax to use. Can
> anyone help.
>
> Thanks
>



 
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
Adding field to an existing table =?Utf-8?B?SlQ=?= Microsoft Access VBA Modules 2 1st Nov 2007 02:24 PM
Problem adding a field to an existing Table =?Utf-8?B?cm9iYmll?= Microsoft Access Getting Started 3 25th Oct 2007 03:26 PM
Adding field to existing table ReidarT Microsoft Access Form Coding 2 21st Apr 2004 12:55 PM
Adding a Field using VB to an existing table. Bobbak Microsoft Access Forms 8 30th Oct 2003 04:43 AM
Adding a Field using VB to an existing table. Bobbak Microsoft Access Form Coding 9 30th Oct 2003 04:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:20 AM.