How to format a number (combination of today's date and VendorID)

V

Vance

I need to create a number that will be used in the Purchase Order ID
field. I would really like for the new number to be a combination of
the current date and the VendorID, but I can't figure out how to do
it.

I have tried:

CLng([Date()] & [fldVendorID])

but this isn't working; I get a conversion error.

Does anyone know how to do this?

Thanks,
Everette
 
V

Vance

Thanks very much!!!

Everette

Ken Snell said:
CLng(Format(Date(), "mmddyyyy") & [fldVendorID])


--
Ken Snell
<MS ACCESS MVP>

Vance said:
I need to create a number that will be used in the Purchase Order ID
field. I would really like for the new number to be a combination of
the current date and the VendorID, but I can't figure out how to do
it.

I have tried:

CLng([Date()] & [fldVendorID])

but this isn't working; I get a conversion error.

Does anyone know how to do this?

Thanks,
Everette
 

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