PC Review


Reply
Thread Tools Rate Thread

Change Field Formats Programmatically

 
 
Frank
Guest
Posts: n/a
 
      8th Jan 2008
Hi,

I'm trying to figure out how to programmatically change a date/time
field's format to medium from a stand alone EXE.

Basically I have many MDB's in a folder each with multiple tables each
of which have multiple date/time fields. I want to create an EXE
(maybe in c#\vb.net\vb6) that can get all the mdb file --> read all
the tables --> read all the fields and update the field format to
medium for those that are date\time fields.

I can find a lot of VBA code for access, but not for what I need to do
and VBA is not really what I need. I did have (can't find right now)
some VBScript that would do this for a single MDB but it would open
the MDB in Access before it did the update.

Any suggestions would help, not really sure what my options are.

Frank
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      9th Jan 2008
If you've got VBA code, it should work fine in VB6.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Frank" <(E-Mail Removed)> wrote in message
news:edb42810-166d-476a-944e-(E-Mail Removed)...
> Hi,
>
> I'm trying to figure out how to programmatically change a date/time
> field's format to medium from a stand alone EXE.
>
> Basically I have many MDB's in a folder each with multiple tables each
> of which have multiple date/time fields. I want to create an EXE
> (maybe in c#\vb.net\vb6) that can get all the mdb file --> read all
> the tables --> read all the fields and update the field format to
> medium for those that are date\time fields.
>
> I can find a lot of VBA code for access, but not for what I need to do
> and VBA is not really what I need. I did have (can't find right now)
> some VBScript that would do this for a single MDB but it would open
> the MDB in Access before it did the update.
>
> Any suggestions would help, not really sure what my options are.
>
> Frank



 
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
Programmatically change Sort/Group field? M Skabialka Microsoft Access Reports 3 11th Jun 2009 07:41 PM
Change field format programmatically =?Utf-8?B?d0F5bmU=?= Microsoft Access VBA Modules 6 31st Dec 2008 06:47 AM
Programmatically change a field of number type to text type GVR_Mike Microsoft Access 1 13th Jun 2006 04:20 AM
No options in field properties to change formats. =?Utf-8?B?cGx5bWFsZQ==?= Microsoft Access Queries 1 2nd Feb 2006 08:59 PM
Programmatically changing the field formats for a table walters@mellon.com Microsoft Access Database Table Design 2 17th Feb 2004 08:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:26 PM.