I've split my database into a front- and back-end part.
Since I did that I get an error message.
Explanation of the code :
every database user has on his pc a configfile with his/her idnumber. This idnumber will be compared with a number out of the table "gebruikers" column "IdNr".
The code:
Open "P:\TRACE.CFG" For Input As #1
Input #1, userID
Close #1
usertype = "kijker"
Set tdf = dbHuidig.TableDefs("Gebruikers")
Set rstReport = tdf.OpenRecordset()
-> rstReport.Index = "IDnr"
(->) rstReport.Seek "=", userID
If (rstReport.NoMatch) Then
usertype = "No Access"
MsgBox (" No Access!!!")
DoCmd.Close
Else
usertype = rstReport!user_type
username = rstReport!Name
End If
Error consist at the arrow. Error 3251: This operation is not available for this type of object.
Connection to the tables are OK.The table "gebruikers" will be opened.
Before splitting the database it worked well !!!
What's going on here ?
Since I did that I get an error message.
Explanation of the code :
every database user has on his pc a configfile with his/her idnumber. This idnumber will be compared with a number out of the table "gebruikers" column "IdNr".
The code:
Open "P:\TRACE.CFG" For Input As #1
Input #1, userID
Close #1
usertype = "kijker"
Set tdf = dbHuidig.TableDefs("Gebruikers")
Set rstReport = tdf.OpenRecordset()
-> rstReport.Index = "IDnr"
(->) rstReport.Seek "=", userID
If (rstReport.NoMatch) Then
usertype = "No Access"
MsgBox (" No Access!!!")
DoCmd.Close
Else
usertype = rstReport!user_type
username = rstReport!Name
End If
Error consist at the arrow. Error 3251: This operation is not available for this type of object.
Connection to the tables are OK.The table "gebruikers" will be opened.
Before splitting the database it worked well !!!
What's going on here ?