Okay... I have a database that multiple users access on the network. I do not have it split and it is too late to deal with that.
Moving on...
I have been manually looking in the table to try to track data changes but it is too hard now so I decided to add date/time stamps to the records to help.
I currently track the userid's of the people updating records as well as for the few who are allowed to add new records.
I added the date/time stamp to the new record entry with no problem right in the field of the table. I already had the field in the table for that and had a field in the form where I would manually choose today's date. I just removed the field from the form and set the default value to the table field "=Now()". works perfect.
The new test record then has 2 different groups that would update that record with different data using 2 different forms. I added in 2 more fields "date/time" in the table called "VisUpdate" and LabUpdate" and set their default values to "=Now()" and added in the "Before_Update" of each ones input form this: in the visual data input form I put "Me! [VisUpdate] = Now()" and in the lab data input form I put "Me! [LabUpdate] = Now()".
When I add a new test record the date/time stamp works for that one.
When I update that test record using the Visual data input form it adds the date and time of that data update perfect.
When I try to do the second (last update of the record) data update on the test record I get a "compile error: syntax error" popup and it highlights the "Me! [LabUpdate] = Now()" line int he before_update for that form.
I need help understanding why it works in the visual data input form but doesn't work in the lab data update form.
Can you only have this feature once in a record?
Moving on...
I have been manually looking in the table to try to track data changes but it is too hard now so I decided to add date/time stamps to the records to help.
I currently track the userid's of the people updating records as well as for the few who are allowed to add new records.
I added the date/time stamp to the new record entry with no problem right in the field of the table. I already had the field in the table for that and had a field in the form where I would manually choose today's date. I just removed the field from the form and set the default value to the table field "=Now()". works perfect.
The new test record then has 2 different groups that would update that record with different data using 2 different forms. I added in 2 more fields "date/time" in the table called "VisUpdate" and LabUpdate" and set their default values to "=Now()" and added in the "Before_Update" of each ones input form this: in the visual data input form I put "Me! [VisUpdate] = Now()" and in the lab data input form I put "Me! [LabUpdate] = Now()".
When I add a new test record the date/time stamp works for that one.
When I update that test record using the Visual data input form it adds the date and time of that data update perfect.
When I try to do the second (last update of the record) data update on the test record I get a "compile error: syntax error" popup and it highlights the "Me! [LabUpdate] = Now()" line int he before_update for that form.
I need help understanding why it works in the visual data input form but doesn't work in the lab data update form.
Can you only have this feature once in a record?
Last edited: