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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run procedure in sub form from button on parent form

Status
Not open for further replies.

SpankYou

Programmer
Feb 24, 2003
211
GB
Hey,

I have a Parent Form which provides a searching function for Time Sheet Entries, and a sub form where I can add a Time Sheet Entry. Basically if a user enters a new Time Sheet Entry into the subform, then they can save this entry. If the user exits the program via my command button (there is no 'X') I have a message box saying, would you like to save your last entry. If a user picks yes then it's great as it is already saved, but if a user picks No, I need to run code in the subform to say delte the current record.
This whole situation is currently setup, but I need to have some sort of command in my parent button to say...

Run FrmTimeSheetEntry.Delete()

where FrmTimeSheetEntry is the form name, and Delete() is the procedure name.

BTW i'm running Access 2002 Developers Ed. if that helps

Thanks in advance for any help,

Sam

"You couldn't fool your mother on the foolingest day of your life if you had an electrified fooling machine." - Homer
 
Hey Everyone,

It's all sorted, just post here if you want to know, as I'm off home at the mo.

Cheers

Sam

"You couldn't fool your mother on the foolingest day of your life if you had an electrified fooling machine." - Homer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top