alter table to add a formatted DATETIME field

G

Guest

Hi,

i am creating a front-end with visual basic 6 using ADO and ACCESS 2000 as
database.

i need to programmatically add a formatted DATETIME field: "dd/mm/yyyy".

With this code
ALTER TABLE myTable ADD myNewDateField DATETIME

the date format rest not specified...

i have tried
ALTER TABLE myTable ADD myNewDateField DATETIME Format( "dd/mm/yyyy")
and many other ways but nothing...

Please HELP ME!!!!!

Thank You All
 
R

Rick Brandt

Hi,

i am creating a front-end with visual basic 6 using ADO and ACCESS 2000 as
database.

i need to programmatically add a formatted DATETIME field: "dd/mm/yyyy".

With this code
ALTER TABLE myTable ADD myNewDateField DATETIME

the date format rest not specified...

i have tried
ALTER TABLE myTable ADD myNewDateField DATETIME Format( "dd/mm/yyyy")
and many other ways but nothing...

Formatting has nothing to do with how Access stores dates. It only affects
display and is therefore unnecessary at the table level.
 
G

Guest

Rick Brandt said:
Formatting has nothing to do with how Access stores dates. It only affects
display and is therefore unnecessary at the table level.

I understand but, formatting also does not affects the way a ADO recordset
retrives the data?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top