Make Table Query

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a query setup to make a new table and the table set up, I'm all good
there.

Here is my problem. I need to convert a date from 11/22/1999 to 11221999 on
the new table, can't figure that one out.

Also I have a text field that needs to default to "000" 3 zeros, I can only
get one 0 to show.

Help???
 
Try this for the zeros in the default view under tadle design for that
field.

"000"
 
Try this for the zeros in the default value under table design for that

field.

"000"
 
I am using 2000, government doesn't get to upgrade until the software is
absolutely obsolete :(
 
I have a query setup to make a new table and the table set up, I'm all good
there.

Why a MakeTable? They are VERY rarely necessary. If you need to do an
Export or a Report, just base it on a Select query instead, and avoid
the overhead and inflexiblilty of MakeTables.
Here is my problem. I need to convert a date from 11/22/1999 to 11221999 on
the new table, can't figure that one out.

Use NewDate: Format([datefield], "mmddyyyy")
Also I have a text field that needs to default to "000" 3 zeros, I can only
get one 0 to show.

Are you certain it's Text datatype? Perhaps you could post the SQL of
the query. Note that MakeTable queries don't necessarily give you much
control over datatypes; you may want to create the desired table,
empty, and use an Append query to fill it instead.

John W. Vinson[MVP]
 
John,
Thanks I've gotten the query to run properly. I really appreciate your help!

John Vinson said:
I have a query setup to make a new table and the table set up, I'm all good
there.

Why a MakeTable? They are VERY rarely necessary. If you need to do an
Export or a Report, just base it on a Select query instead, and avoid
the overhead and inflexiblilty of MakeTables.
Here is my problem. I need to convert a date from 11/22/1999 to 11221999 on
the new table, can't figure that one out.

Use NewDate: Format([datefield], "mmddyyyy")
Also I have a text field that needs to default to "000" 3 zeros, I can only
get one 0 to show.

Are you certain it's Text datatype? Perhaps you could post the SQL of
the query. Note that MakeTable queries don't necessarily give you much
control over datatypes; you may want to create the desired table,
empty, and use an Append query to fill it instead.

John W. Vinson[MVP]
 

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

Back
Top