M
May-G
Hello,
I made a database that was working correctly before, but when I split the
database into two parts (Tables and one mdb and others as the other mdb), I
got this message: Operation is not supported for this type of object. Can
someone help?
Here is the code that crashed:
Private Sub Form_Open(Cancel As Integer)
Dim rsName As Recordset
If Not Me.OpenArgs = "" Then
Set rsName = CurrentDb.OpenRecordset("Staffs")
rsName.index = "loginstring" 'Here is the program crashed
rsName.Seek "=", Me.OpenArgs
If Not rsName.NoMatch Then
UserLabel.Caption = rsName!FirstName + " " + rsName!LastName
End If
End If
End Sub
Thanks in advance
I made a database that was working correctly before, but when I split the
database into two parts (Tables and one mdb and others as the other mdb), I
got this message: Operation is not supported for this type of object. Can
someone help?
Here is the code that crashed:
Private Sub Form_Open(Cancel As Integer)
Dim rsName As Recordset
If Not Me.OpenArgs = "" Then
Set rsName = CurrentDb.OpenRecordset("Staffs")
rsName.index = "loginstring" 'Here is the program crashed
rsName.Seek "=", Me.OpenArgs
If Not rsName.NoMatch Then
UserLabel.Caption = rsName!FirstName + " " + rsName!LastName
End If
End If
End Sub
Thanks in advance