RE: Help with a (relatively simple?) query
- From: "BonnieW via AccessMonster.com" <u33846@uwe>
- Date: Wed, 15 Aug 2007 20:42:05 GMT
All of the previous records do have date fields that record the date the data
was entered. This new function that I'm creating the query for, however,
would only be for use with future data, as it's a genuinely new feature for a
genuinely new process- they've no interest in doing this for past data. I
had been using the autonumber- I didn't realize it was quite such a liability.
So, presuming I add a field with a default value of =Now(), to tblConsEffort-
how would I structure that query?
Always happy to give you more info if you'd like. Thanks for your help. :)
-Bonnie
Jerry Whittle wrote:
How do you know which record in the main table is the most recent one? If you
say the autonumber field, go directly to jail and do not pass go! Autonumbers
are not guaranteed to be sequential and the next one could well be a negative
number!
Also you can't depend on the last record being the bottom one when you open
up the table. The next time you open the table, that record could be
somewhere else in the table.
What I use in these situations is a Date/Time field in the table with a
default of Now(). Unless you have more than one record being added in a
second, for example an append query or multiple users entering records, you
can tell the last record added by doing a Max on the date/time field. Of
course you'll need to somehow add dates to the existing records as a default
value only works on added records and not existing data.
I know I'm missing something terribly obvious here, but I just can't put my[quoted text clipped - 55 lines]
finger on it.
them will necessarily have a value- the tblReveg, tblInControl, tblTrailWork
stuff, specificially.
--
Message posted via http://www.accessmonster.com
.
- Follow-Ups:
- Re: Help with a (relatively simple?) query
- From: John Spencer
- Re: Help with a (relatively simple?) query
- References:
- Help with a (relatively simple?) query
- From: BonnieW via AccessMonster.com
- RE: Help with a (relatively simple?) query
- From: Jerry Whittle
- Help with a (relatively simple?) query
- Prev by Date: Re: running a query by month
- Next by Date: Re: Matching records for an update query
- Previous by thread: RE: Help with a (relatively simple?) query
- Next by thread: Re: Help with a (relatively simple?) query
- Index(es):
Relevant Pages
|