Access 2003
I had a database where all tables, forms, reports, and modules are in one. When a form named "maintenance" is opened, the code below runs.
When this same database is split into a front-end and
a back-end, and I opened the same form named "maintenance"
on the front-end, an error occurred. The program flag the error at the code below
Error message:
Run-time error 3270. Property Not Found.
error flag:
If Dbs.Properties(strPropName) = True Then
//////////////////////////////////////////////////
Private Sub Form_Open(Cancel As Integer)
Dim Dbs As Object
Dim strPropName As String
strPropName = "AllowBypassKey"
Set Dbs = CurrentDb
If Dbs.Properties(strPropName) = True Then
Me!Lock_State = "Unlock"
Else
Me!Lock_State = "Lock"
End If
End Sub
I had a database where all tables, forms, reports, and modules are in one. When a form named "maintenance" is opened, the code below runs.
When this same database is split into a front-end and
a back-end, and I opened the same form named "maintenance"
on the front-end, an error occurred. The program flag the error at the code below
Error message:
Run-time error 3270. Property Not Found.
error flag:
If Dbs.Properties(strPropName) = True Then
//////////////////////////////////////////////////
Private Sub Form_Open(Cancel As Integer)
Dim Dbs As Object
Dim strPropName As String
strPropName = "AllowBypassKey"
Set Dbs = CurrentDb
If Dbs.Properties(strPropName) = True Then
Me!Lock_State = "Unlock"
Else
Me!Lock_State = "Lock"
End If
End Sub