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

Event in main form to erase values in subform

Status
Not open for further replies.

Benoni2

Programmer
Jul 27, 2005
30
US
I have a form with a subform. I am trying to get a few values in the subform to be cleared when using the after update event on an object in main form. I can't seem to figure out how to access the fields I need to erase in the subform from the object in the main form. Any ideas on how to do this referencing?
 
Are these BOUND forms (they are based on tables)? What you will be doing is deleting the data from the table that is the recordsource for the subform. Is that what you mean to do?

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244. Basics at
 
How are ya Benoni2 . . . . .

Something like this:
Code:
[blue]   Me![purple][b]subFormName[/b][/purple].Form![purple][b]ControlName[/b][/purple] = ""[/blue]

Calvin.gif
See Ya! . . . . . .
 
Thanks all. this helped much! Yes GingerR, they are bound forms.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top