Chào các bạn,mình có File đã khóa phím Shift, nhưng đã quên pass,Mình lượm được Code này, nhưng mà chạy thì nó báo lỗi:
	
		
Trên tinh thần học hỏi
				
			SAu khi cho Debug thì nó bôi đen:Run-times Error '3112"
Record can not be read,no read Permission on MsySDb
db.Properties.Append ThuocTinh
		PHP:
	
	Private Sub EnableSHIFTButton_Click()
 
On Error GoTo ErrHandler
 
Dim db As Database
Dim ThuocTinh As Property
 
 
 
Set db = OpenDatabase("C:\QLNS.mdb")
db.Properties("AllowBypassKey") = True
Set db = Nothing
 
Exit Sub
ErrHandler:
   MsgBox Err.Number
   If Err.Number = 3270 Then   Property not found.
       Set ThuocTinh = db.CreateProperty("AllowBypassKey", dbBoolean,  True)
       db.Properties.Append ThuocTinh
       Resume Next
   Else
       MsgBox Err.Description
    End If
End Sub
			
				Sửa lần cuối: 
			
		
	
								
								
									
	
								
							
							 
				





 
 
 
		 
 
		 
 
		 
