PC Review


Reply
Thread Tools Rate Thread

Change data type via VB

 
 
Harry
Guest
Posts: n/a
 
      27th Sep 2003
Hi to all. I like to change the data type, format and
display control for a field in a table via VB. Such as
field1, data type = "Yes/No". Under the general tab,
Format = "Yes/No" and under Lookup tab, Display control
= "Check box". Is this possible? An example would be a
big help.

Thanks in advance.
 
Reply With Quote
 
 
 
 
Tim Ferguson
Guest
Posts: n/a
 
      27th Sep 2003
"Harry" <(E-Mail Removed)> wrote in
news:13c7a01c38491$221fce60$(E-Mail Removed):

> I like to change the data type, format and
> display control for a field in a table via VB.


Ummm: don't display fields in tables. That is what forms are for.

Changing a data type is a Major Design adjustment -- it's not the sort of
thing you would do more than once, and so it's easier just to do it once
using the design window than work out how to do it programmatically.

Similarly, the format property only makes a difference when you are
designing forms, so if you have access to the UI in order to create and
edit the form, then you also have access to the tabledef design to change
it there too.

And I just don't know of any legitimate use of the "display control"
property, except to attempt to lead new users into the mistake of thinking
that table datasheets are reasonable ways to edit data in.

B Wishes


Tim F

 
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
Change data in an Internal Data Type Blayne Willett Microsoft Outlook Form Programming 5 23rd Jul 2009 02:08 AM
Change data type Dimitris Nikolakakis Microsoft Access ADP SQL Server 2 26th Jun 2006 09:06 PM
Change Memo data type to Text data type DS Microsoft Access Getting Started 1 26th Jan 2005 04:56 PM
Unable to change data type in field options when importing data f. =?Utf-8?B?SmluTXF0?= Microsoft Access External Data 1 21st Jan 2005 10:58 PM
How to change a number or text data type to autonumber and keep the table data? Julian Ganoudis Microsoft Access Forms 2 12th Jan 2004 08:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:49 PM.