I have a database with a number of users entering data into an SQL database from a form.
The form is set so that when entering data, if a reference number has already been used the form will display the matching information using recordsetclone.
code is as follows:
However the problem is that if the form is left open then the data in the clone does not seem to update itself.
So if more records are entered by others you cannot see this new info without closing the form and then reopening it.
Any ideas on why this is happening and how to fix it?
The form is set so that when entering data, if a reference number has already been used the form will display the matching information using recordsetclone.
code is as follows:
Code:
Dim rs As DAO.Recordset Dim ref As String ref = Me.refrencenumber Set rs = Me.Recordset.Clone rs.FindFirst "[refrencenumber] = '" & Me.refrencenumber & "'"
So if more records are entered by others you cannot see this new info without closing the form and then reopening it.
Any ideas on why this is happening and how to fix it?
Comment