MySQL Forums
Forum List  »  Microsoft Access

Solution What's Up with this #Deleted Thing
Posted by: Alan Parker
Date: April 10, 2007 09:25AM

Using the time stamp option will not work if many records are appended to a table because the field will not be unique..


Here is a simple solution in access that is pretty generic so you can use it in all the input forms where fresh data is added.

I have assumed that the autonumber field is called Alan , just adjust this as neccessary for each form



On the Forms before insert event use.........
Alan = DMax("[Alan]", Me.RecordSource) + 1


Note the form recordsource has to be a table or query NOT a Select statement. If it is a select statement save the select statement as a query .. dead simple..


Hope this helps..

Options: ReplyQuote


Subject
Views
Written By
Posted
3141
September 06, 2005 07:32AM
1960
September 07, 2005 09:23AM
2053
September 09, 2005 07:46AM
2219
September 12, 2005 04:22PM
2064
September 13, 2005 01:37PM
2222
September 15, 2005 08:47AM
Solution What's Up with this #Deleted Thing
2149
April 10, 2007 09:25AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.