B
Bob Richardson
I naively designed my DB with security level set to LOW, then went to
install the MDB on a computer that had the security level set to MEDIUM.
Some of the VBA code is totally ignored on the medium PC. For example:
' Look for multiple records with the same name
If DCount("*", "Contacts", "FirstName = " & Chr$(34) & _
Me.FirstName & Chr$(34) & " And LastName = " & _
Chr$(34) & Me.LastName & Chr$(34)) > 1 Then
MsgBox CStr(FirstName) & " " & CStr(LastName) & " is already in the
database. " _
& "Please make sure these are two different people. "
End If
I was trying to inform the user that she's just made a change to a record
that shares a name with at least one record. This worked beautifully on my
LOW security computer, but not on hers. What's the solution?
I suppose #1, I should make sure that my version of Access has the same
security level as hers. OK, I changed to MEDIUM, but of course the above
code is now ignore ignored on my computer too Is there a fix to this?
install the MDB on a computer that had the security level set to MEDIUM.
Some of the VBA code is totally ignored on the medium PC. For example:
' Look for multiple records with the same name
If DCount("*", "Contacts", "FirstName = " & Chr$(34) & _
Me.FirstName & Chr$(34) & " And LastName = " & _
Chr$(34) & Me.LastName & Chr$(34)) > 1 Then
MsgBox CStr(FirstName) & " " & CStr(LastName) & " is already in the
database. " _
& "Please make sure these are two different people. "
End If
I was trying to inform the user that she's just made a change to a record
that shares a name with at least one record. This worked beautifully on my
LOW security computer, but not on hers. What's the solution?
I suppose #1, I should make sure that my version of Access has the same
security level as hers. OK, I changed to MEDIUM, but of course the above
code is now ignore ignored on my computer too Is there a fix to this?