=?Utf-8?B?ZnJhbmtsaW5idWtvc2tp?=
I'd like to have a number automatically populated based on the Julian
Date.
Just use today's date as a datetime value and use the format property to
display it.
I set a text box format to: =IIF(date())=([Julian
date]),([Awd_Order_no]+1),1)
This will display the number 1 if the [Julian Date] field is the same as
today; otherwise it will display the contents of Awd_Order_No with one
added to it. I'm not sure that is what you want.
in hopes of accomplishing the following:
If todays date is the same date as the last record, then add one to
the last record,
There is no such thing in R as the "last" record. Last is only meaningful
according to some sort order, which could be the highest PK value, or the
most recent record created by the current user, or the most recent record
added to the table, or the lowest in the alphabet, or whatever. Tables do
not have any intrinsic ordering.
and record this value in my table. Otherwise, make
the value automatically 1 (and I'm hoping this will be recorded in my
table).
I guess what you are trying to do is to create a custom autonumber --
there are plenty of examples of how to do this around. Either google
something like "MS Access Custom Autonumber". I was about to suggest you
look at Dev's Access Web on
http://www.mvps.org/access but (unless I
missed it) I can't actually find it there.
Hope that helps
Tim F