Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I get the soure code from a deleted module

Status
Not open for further replies.

jcarneir

Programmer
May 17, 2001
26
VE
I lost a module and I want to get the source code. Is There a way to get the code back?
 
I don't think so, short of an old back-up....

Sorry bout that.

Ben
 
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 ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top