Hi all,
I am creating a Web Database and need to be able to present a form that will autopopulate with values from a previous record but that will insert a new record rather than editing the existing one once any edits have been made. For auditing purposes, the existing record cannot be edited and instead a new entry in the database needs to be made with the current timestamp.
I have done this type of thing before using VBA and it is pretty easy. The steps are:
This does just what is required. Problem is that this is a web project and so I am forced to stay away from VBA and to use the Access 2010 Macro Editor instead. This is proving problematic.
Anyone have any suggestions on how I can do this with a macro? If not, are there other ways e.g. using a data macro to insert rather than update, that you can think of?
Thanks for your help.
I am creating a Web Database and need to be able to present a form that will autopopulate with values from a previous record but that will insert a new record rather than editing the existing one once any edits have been made. For auditing purposes, the existing record cannot be edited and instead a new entry in the database needs to be made with the current timestamp.
I have done this type of thing before using VBA and it is pretty easy. The steps are:
- Create a form and open it in 'insert' mode
- Run an SQL query that finds the last related record
- Set the values (default values) of each control on the form to the values retrieved in the SQL query (apart from primary key and timestamp of course!)
This does just what is required. Problem is that this is a web project and so I am forced to stay away from VBA and to use the Access 2010 Macro Editor instead. This is proving problematic.
Anyone have any suggestions on how I can do this with a macro? If not, are there other ways e.g. using a data macro to insert rather than update, that you can think of?
Thanks for your help.