-   
- Private Sub Text1_Keypress(Keyascii as Integer) 
-   
- If KeyAscii = vbKeyReturn Then 
- KeyAscii = 0 
- nReg = Val(Text1) 
-   
- Data1.Recordset.MoveFirst 
- Data1.Recordset.FindFirst "CodigoMat = '" & Text1.Text & "'" 
- Text4.SetFocus 
-   
- If Data1.Recordset.NoMatch Then 
- MsgBox "La clave del material no existe", 64, "Información al usuario" 
- Text1.SetFocus 
- End If 
-   
- End If 
- End if 
-   
- End sub 
-   
-