I would like to understand better what do you mean about dragging the whole table across the networkSorry. I can't. If you want help on @ebs17's suggestion, please wait for him or someone else to answer.
the file has been modified quite a bit since I opened the post,A record is randomly selected from a pool of tasks to be completed
I can't really select randomly as tasks need to follow a FIFO pipeline. Since they have a opened date and time stamp I might randomize at least the time but I'd rather a more clean solution that I can't think of rn.
that's going to be the next update.A button can complete saving the existing record. In the event procedure for this:
the form loads the record with the query you posted then adds a note field and an exit status
along with with the record, the save button adds that note and exit field into another table with an update query
in this case, the:
Code:
If Me.Dirty Then Me.Dirty = False
NewTask
would still work or do I need to clean fields manually before loading the next task?
Code:
SELECT * FROM tblTasks WHERE False
is it better to put this in the code itself or in the form bound field?
right not the form field is left empty and all the fields are bound to the query in vba
I could add a 'locked by user field' then an if statement that checks the right user locked the record then loads it into the me.recordsourceSo if you have a lot of hard-working users who work extremely intensively, you would have to install a mechanism so that an error is triggered in the event of double access and this then leads to one of the users simply making a new record selection again.
but this still wouldn't cover the double access right when:
Code:
.Fields("GoForEdit") = Now
another thing that's missing is a release record piece of code for when access itself gets (properly) closed
handling a crash might be a little bit tricky tho