I think it is lost too, but I was able to recover some binary data from a deleted module using this code:
Public Sub SaveDeletedModule(sModuleName As String)
Dim rs As Recordset
Dim f As Integer
Set rs = CurrentDb.OpenRecordset("select * from MSysModules2 where Flags=4 and name='" & sModuleName & "'", dbOpenSnapshot)
f = FreeFile
Open "c:\module.txt" For Output As #f
Print #f, rs.Fields("Module"
Close #f
rs.Close
Set rs = Nothing
End Sub
Can sombody tell me if this is the compiled data of the module's source ?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.