Is there any way i can view the VB code of all the objects i created in my MS Access Database?; in the Event Procedure of any object; it only shows me the events; not the actual design?
p.s. i created the DB using wizards
You see i created this MS Access Database (assignment) using wizards to create all my Tables; Forms; Queries and Reports ; now my teacher is asking for the VB code (the object design code); i can get to the SQL commands for forms and queries but not the actual design code of a certain object for example (from another database)
is there a VB code for my DB in the first place?; i can send you the database if u like; but i dont think it attached here; skype: doaa.bayoumy
p.s. i created the DB using wizards
You see i created this MS Access Database (assignment) using wizards to create all my Tables; Forms; Queries and Reports ; now my teacher is asking for the VB code (the object design code); i can get to the SQL commands for forms and queries but not the actual design code of a certain object for example (from another database)
Code:
Private Sub Label15_Click()
'purges the work file of the previous month
DoCmd.OpenQuery "Purge Work File"
'updates the work file with pay summary
DoCmd.OpenQuery "Append to Temp"
'opens the tax file
Set a = CurrentDb.OpenRecordset("Tax")
'opens the work file
Set b = CurrentDb.OpenRecordset("Temp work")
'updates the tax file
Do While Not b.EOF()
a.MoveFirst
Do While Not a.EOF()
If b.[Net Pay before tax] < a.[Income] Then
Exit Do
End If
a.MoveNext
Loop
b.Edit
b.[Tax] = a.[Tax]
b.[Net Pay after tax] = b.[Net Pay before tax] - b.[Tax]
b.Update
b.MoveNext
Loop
'closes the tax file and the work file
a.Close
b.Close
End Sub
Comment