One solution is (i use this today)
Computer1 has a form going in the background which chekcs field1 on table1 every 1000ms or so.
Computer2 makes a edit to field1 on table1.
Computer1 has
- Private sub form_timer()
-
dim rst as new adodb.recordset
-
with rst
-
.open "SELECT * from [table1]",currentproject.connection, adopenforwardonly, adlockreadonly
-
-
If !field1 = "somevalue" then
-
'do something useful
-
end if
-
.close
-
end with
-
set rst = nothing
-
-
end sub
in its timer
But this makes the form hang some milliseconds every cycle and i think this is somewhat n00b programming :=)
I use this to display a message popup to all users, but all users gets the message at different times and i think that is unproffecionale programming.
I also use this to initiate a 'Docmd.quit' at the users which has forgotten to log of.
But i really want to find a better way to intiate code. Hope someone here has some tips :=)