Query date

  • Thread starter Thread starter Simon
  • Start date Start date
S

Simon

I have a query that is based on a table with day, month ,year all
split up in different fields

Is there a way in the query to create a date field with all joining
all 3 fields together


Thanks

SImon
 
Simon said:
I have a query that is based on a table with day, month ,year all
split up in different fields

Is there a way in the query to create a date field with all joining
all 3 fields together


Thanks

SImon

DateSerial(YearField, MonthField, DayField)

Assuming all fields are integers.
 
DateSerial(YearField, MonthField, DayField)

Assuming all fields are integers.

Month field is not an interger

month is like January Febuary ect
 
Simon said:
Month field is not an interger

month is like January Febuary ect

Then you can do something like...

CDate(MonthField & "-" & DayField & "-" & YearField)
 
Simon said:
I have a query that is based on a table with day, month ,year all
split up in different fields

Is there a way in the query to create a date field with all joining
all 3 fields together


Thanks

SImon
 

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