Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto 'Date of entry' field needed.

Status
Not open for further replies.

PaulChilds

Technical User
May 21, 2002
195
You want to set the Default Value on the table to Date() or Now(). That way it will populate when the record is created. You can still use the Format to format the way the date or datetime will be entered.

Hillary
 
This is a add-on question: I have a table set up this way. If a record is changed can the Date() update?
 
You're asking for a ModifyDate default value, yes? I think you can use Now(). While we're at it, is there an automatic UserName (network) that can be created?
 
Here's the point: all of this should be happening on a form, not in a table. Users should never be allowed to touch the tables, only forms and reports. This will make your life easier.

Jeremy =============
Jeremy Wallace
Designing, Developing, and Deploying Access databases since 1995.
 
Agreed on that (not allowing users direct access to the tables). I think that Paul was looking for a database engine way to update those fields. The Default to Date() works fine, but it would be nice for certain fields to update automaticly (without code) too.
 
We didn't get away from the point. If you do a query for a mass update, you can use functions to update the fields. If you have a user interacting with the data, it should be through a form (which updates the underlying table(s)).
 
Paul,

What I said was "this should all be happening on a form", with emphasis on "should". You can go ahead and enter data in the table, but it is a poor practice. The point of a relational database is that you set up tables to hold data and forms for adding, editing, and deleting data. Users should never be entering data directly into a table.

Jeremy =============
Jeremy Wallace
Designing, Developing, and Deploying Access databases since 1995.
 
Why does everyone keep going on about this now that my problem has been solved?

I have been asked to provide a table which does a certain thing - and I asked for help on it. I didn't ask for a debate on whether I should use tables or forms.

I haven't given any more details than I needed to to get my problem solved, so you don't have any idea in which context the table is to be used (and you don't know which forms I already have in place on the database). So when I said you were getting away from the point that is exactly what I meant.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top