Re: Need a Date Two Ways

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Thu, 18 Jan 2007 11:52:01 -0800, Nanette
<Nanette@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I have a Start Date whose format in a report needs to be 1/1/07.

When the data is exported into Excel and then imported into another database
the format needs to be a numbered month i.e. "7" in one column and a numbered
year i.e. "07" in another column.

What would be the best design solution???

Store a Date/Time field in your table; set the Format property of the
report textbox to m/d/yy; export to Excel from a Query with two
calculated fields

Month([datefield])

for the numeric month, and

Format([datefield], "yy")

for the text year.

John W. Vinson[MVP]
.



Relevant Pages

  • Re: Help me Help !!!!
    ... Rick Brandt the second problem that i have that when i need to export my data ... Ms excel so i used the command "Anaylze it with Ms Excel" from Tools menu ... >> that is for Date of Birth i mean Date/Time field. ... >> so plz i need help that can support both ...
    (microsoft.public.access.tablesdbdesign)
  • Wingate & Crystal
    ... that holds all the internet activity. ... I need to find out how to convert the date/time field, ... the formula in excel is not usable in Crystal. ...
    (comp.security.firewalls)
  • number to text problem
    ... I was able to cut & paste tabular data from the web to an excel sheet. ... Note: when the cell is displaying 32:31:00 and if I click on it it ... date/time field although the Access field is defined as text. ...
    (microsoft.public.excel.misc)
  • Re: ACCESS IMPORT DATE/TIME IN CSV FILE
    ... >I'm importing a CSV file into ACCESS, but the date/time field (format: ... >It imports fine into EXCEL as a date/time field, but the files I want to use ...
    (microsoft.public.access.gettingstarted)