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

Error when trying to delete a subform

Status
Not open for further replies.

pachad

Programmer
Mar 13, 2003
45
US
I used the Access form wizard to create a form with two subforms on it. Subsequently, I decided to remove one of the two subforms. I did this by selecting the subform in design view, and pressing the 'delete' key.

Now, whenever I open the form I get an access error message stating "Microsoft Office Access can not find the field 'OldSubform2' referred to in your expression". After clicking 'ok' the form opens fine.

How do I get rid of the error message?
 
Do you have code behind the form? If you have something that references that control like an on open event with:

Me.oldSubform2.setfocus = true

you will get that error
 
And no ControlSource referencing OldSubform2 ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
And no reference in the query, or a controls default value. There are a lot of places to check.
 
No, no and nope.

Thanks all, but I guess I'll have to just redo the wizard.
I also tried deleting the dependancy from the dependancy window, but i could not delete from there.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top