Concatenate

R

ram

I would like to ask for help with the following question:

I would like to know how to concatenate the date serial number from a date
field with a general number field

DateValue([Process_Date]) & [Employee_Num]

The datevalue function changes the date to a serial number however it won’t
concatenate with the employee number


Thanks in advance for any help
 
D

Douglas J. Steele

You mean Employee_Num is a numeric field?

Try:

Format([Process_Date], "yyyymmdd") & CStr([Employee_Num])
 
R

ram

HI Douglas,

I was not able to get your code to run in my update query. I was looking for
the result shown in the concatenated field below. When i split your code the
process date shows as 20081101 but I was hoping for 39753.

I still was not able to get the concatenation to work.

Thanks for any additional help

Process_Date Field Employee_Num Field Concatenated Field
11/1/2008 123456 39753123456




Douglas J. Steele said:
You mean Employee_Num is a numeric field?

Try:

Format([Process_Date], "yyyymmdd") & CStr([Employee_Num])

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


ram said:
I would like to ask for help with the following question:

I would like to know how to concatenate the date serial number from a date
field with a general number field

DateValue([Process_Date]) & [Employee_Num]

The datevalue function changes the date to a serial number however it won't
concatenate with the employee number


Thanks in advance for any help
 
D

Douglas J. Steele

Sorry, I thought seeing the date as a date would be more meaningful.

To get 39753 instead, use

Format([Process_Date], "#") & CStr([Employee_Num])


--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


ram said:
HI Douglas,

I was not able to get your code to run in my update query. I was looking
for
the result shown in the concatenated field below. When i split your code
the
process date shows as 20081101 but I was hoping for 39753.

I still was not able to get the concatenation to work.

Thanks for any additional help

Process_Date Field Employee_Num Field Concatenated Field
11/1/2008 123456
39753123456




Douglas J. Steele said:
You mean Employee_Num is a numeric field?

Try:

Format([Process_Date], "yyyymmdd") & CStr([Employee_Num])

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


ram said:
I would like to ask for help with the following question:

I would like to know how to concatenate the date serial number from a
date
field with a general number field

DateValue([Process_Date]) & [Employee_Num]

The datevalue function changes the date to a serial number however it
won't
concatenate with the employee number


Thanks in advance for any help
 
R

ram

HI Douglas,


Thank you for your reply, I have the date serial number working however i
still can't get the concatenate to work after i update the process_date field.

Thanks for any additional help

Ramone

Douglas J. Steele said:
Sorry, I thought seeing the date as a date would be more meaningful.

To get 39753 instead, use

Format([Process_Date], "#") & CStr([Employee_Num])


--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


ram said:
HI Douglas,

I was not able to get your code to run in my update query. I was looking
for
the result shown in the concatenated field below. When i split your code
the
process date shows as 20081101 but I was hoping for 39753.

I still was not able to get the concatenation to work.

Thanks for any additional help

Process_Date Field Employee_Num Field Concatenated Field
11/1/2008 123456
39753123456




Douglas J. Steele said:
You mean Employee_Num is a numeric field?

Try:

Format([Process_Date], "yyyymmdd") & CStr([Employee_Num])

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


I would like to ask for help with the following question:

I would like to know how to concatenate the date serial number from a
date
field with a general number field

DateValue([Process_Date]) & [Employee_Num]

The datevalue function changes the date to a serial number however it
won't
concatenate with the employee number


Thanks in advance for any help
 
D

Douglas J. Steele

In what event are you putting your code?

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


ram said:
HI Douglas,


Thank you for your reply, I have the date serial number working however i
still can't get the concatenate to work after i update the process_date
field.

Thanks for any additional help

Ramone

Douglas J. Steele said:
Sorry, I thought seeing the date as a date would be more meaningful.

To get 39753 instead, use

Format([Process_Date], "#") & CStr([Employee_Num])


--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


ram said:
HI Douglas,

I was not able to get your code to run in my update query. I was
looking
for
the result shown in the concatenated field below. When i split your
code
the
process date shows as 20081101 but I was hoping for 39753.

I still was not able to get the concatenation to work.

Thanks for any additional help

Process_Date Field Employee_Num Field Concatenated
Field
11/1/2008 123456
39753123456




:

You mean Employee_Num is a numeric field?

Try:

Format([Process_Date], "yyyymmdd") & CStr([Employee_Num])

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


I would like to ask for help with the following question:

I would like to know how to concatenate the date serial number from
a
date
field with a general number field

DateValue([Process_Date]) & [Employee_Num]

The datevalue function changes the date to a serial number however
it
won't
concatenate with the employee number


Thanks in advance for any help
 
R

ram

an update query

Douglas J. Steele said:
In what event are you putting your code?

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


ram said:
HI Douglas,


Thank you for your reply, I have the date serial number working however i
still can't get the concatenate to work after i update the process_date
field.

Thanks for any additional help

Ramone

Douglas J. Steele said:
Sorry, I thought seeing the date as a date would be more meaningful.

To get 39753 instead, use

Format([Process_Date], "#") & CStr([Employee_Num])


--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


HI Douglas,

I was not able to get your code to run in my update query. I was
looking
for
the result shown in the concatenated field below. When i split your
code
the
process date shows as 20081101 but I was hoping for 39753.

I still was not able to get the concatenation to work.

Thanks for any additional help

Process_Date Field Employee_Num Field Concatenated
Field
11/1/2008 123456
39753123456




:

You mean Employee_Num is a numeric field?

Try:

Format([Process_Date], "yyyymmdd") & CStr([Employee_Num])

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


I would like to ask for help with the following question:

I would like to know how to concatenate the date serial number from
a
date
field with a general number field

DateValue([Process_Date]) & [Employee_Num]

The datevalue function changes the date to a serial number however
it
won't
concatenate with the employee number


Thanks in advance for any help
 

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