Concatenate Date as Number

one3nine0

Board Regular
Joined
Jul 21, 2014
Messages
127
I have a table in Access that has a list of dates, and I have a second table that has a list of telephone lines.

I tried to make a query to concatenate the telephone line with the dates, but the result is XXX-XXX-XXXX_8/1/2015

What I want is XXX-XXX-XXXX_42217 (the number or serial number version of the date in excel).

I know that access understands 42217 as 8/1/2015 because if I change the date table into numbers through detail view they match. But i want to leave the date table formatted as Date/Time and not Number.

Is there a way to do this?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Yes, you can do it like this:

Code:
MyCalculatedField: [TeleponeNumberField] & "_" & Format([DateField],"0")
 
Upvote 0

Forum statistics

Threads
1,215,634
Messages
6,125,938
Members
449,275
Latest member
jacob_mcbride

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top