Sure. I don't see why not. Use DateSerial to put together 1/1 of the current year. Use DateDiff to determine how many days from then until now. Use Format to assemble the current date/time as you want it. Then smash em all together. :)
Remember, you can do it all in one statement, but it's easier if you break it down into steps.
Austin RitnerOP
@Reply 6 years ago
Gotcha. Haven't quite learned about dateserial yet so that will be interesting. Formatting it should be either in the format tab or maybe an input mask with all numbers?
I'm thinking this could be an alternative to an OrderID and would probably only show on an invoice or paid orders.
Just use the Format function. If you finish this entire class and still have questions, let me know. DateSerial is a great function.
Austin RitnerOP
@Reply 6 years ago
Finally had some time to really work on this. It was super easy. The only thing I had an issue with at first was formatting the time because it was displaying the AM/PM, but as soon as I put Format([Time], "hhnnss") into the control source tab, it worked flawlessly.
So now it displays as days passed since 1/1, mmddyy, hhnnss, and autonumber (293)-(090920)(093342)(1)
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Access Expert 28.