R
Richard
Hi
I have been troubleshooting this form for weeks and still scratching my
head.
It is an enrolment form where when users click on the enrol button, the
EnrolmentId and ParticipantId is inserted into a one to many table,
Enrolment/Participant.
It works okay on the master, but ONLY somtimes when the users (mde) click,
an error msg "'The Microsoft Jet engin stopped the process because you and
anoth user are attempting to change the same data at the same time.'
I read a thread where it states that maybe a permission issue or another
instance is open. So, I assigned administer permissions to all users. The
users are still getting the error message and I'm stuck....
Many thanks in advance.
Richard
The code is onclick event of the enrol button.
Dim DB As dao.database
If IsNull(Me.cmbPart) Then
MsgBox "Please select name first!", , "WB"
Exit Sub
ElseIf Me.Dirty = True Then
Me.Dirty = False
Set DB = CurrentDb
DB.Execute ("INSERT INTO [Enrolment/Participant](EnrolmentID,
ParticipantID) VALUES (" & Me.EnrolmentID & ", " & Me.cmbPart & ");")
Set DB = Nothing
Else
Set DB = CurrentDb
DB.Execute ("INSERT INTO [Enrolment/Participant](EnrolmentID,
ParticipantID) VALUES (" & Me.EnrolmentID & ", " & Me.cmbPart & ");")
Set DB = Nothing
End If
Me.cmbPart = Null
Me.EnrolmentSubform.Requery
Me.cmbPart.SetFocus
--
I have been troubleshooting this form for weeks and still scratching my
head.
It is an enrolment form where when users click on the enrol button, the
EnrolmentId and ParticipantId is inserted into a one to many table,
Enrolment/Participant.
It works okay on the master, but ONLY somtimes when the users (mde) click,
an error msg "'The Microsoft Jet engin stopped the process because you and
anoth user are attempting to change the same data at the same time.'
I read a thread where it states that maybe a permission issue or another
instance is open. So, I assigned administer permissions to all users. The
users are still getting the error message and I'm stuck....
Many thanks in advance.
Richard
The code is onclick event of the enrol button.
Dim DB As dao.database
If IsNull(Me.cmbPart) Then
MsgBox "Please select name first!", , "WB"
Exit Sub
ElseIf Me.Dirty = True Then
Me.Dirty = False
Set DB = CurrentDb
DB.Execute ("INSERT INTO [Enrolment/Participant](EnrolmentID,
ParticipantID) VALUES (" & Me.EnrolmentID & ", " & Me.cmbPart & ");")
Set DB = Nothing
Else
Set DB = CurrentDb
DB.Execute ("INSERT INTO [Enrolment/Participant](EnrolmentID,
ParticipantID) VALUES (" & Me.EnrolmentID & ", " & Me.cmbPart & ");")
Set DB = Nothing
End If
Me.cmbPart = Null
Me.EnrolmentSubform.Requery
Me.cmbPart.SetFocus
--