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

Code Running when Form Opened in Design View??

Status
Not open for further replies.

sathandle

Programmer
Apr 22, 2002
84
0
0
US
I have a form that is running code when it is being opened for editing in design view.

The steps I am doing is as follows:
1. Open database using shift key bypass.
2. Highlighting form.
3. Click on Design so I can make changes to the form
4. I am now prompted for my territory (i.e. something that would be present on the Main Information form that stays open while a user is using the application) The territory is calculated from code that calls the main information form if it is open.

Does code execute when a form is being opened in design view? Should it?

I have recently imported the contents of my database into a new database to alleviate some other issues I was having with the same form (see my other thread on missing control properties).

The underlying recordsource for the form (a query) does call the code, but it should not be running unless the form is opened, at least, so I thought...

Any ideas????

Stumped,

SATHandle [ponder]


Don't beat your head against the wall unless you know how to plaster.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top