Close button, closes form to the wrong place 
Author Message
 Close button, closes form to the wrong place

I copied a form that is opened from a sub switchboard
(higher security )
To be used from a different switch board with lower
security level.
My close button was created by the wizards in access 97
and I need it to close back to the switch board that the
form was luanched from. It appears to be taking on the
characteristics of the form I copied from.
How do I change this.
My form seems to do what I want. But I cannot use it
because of security reasons, if it wont go back to where
it was launched from.
The place it closes to is inside a  higher level of my
security and gives operators access to a place I don't
want them to be.
Thanks
Dennis


Wed, 23 Nov 2005 22:38:34 GMT  
 Close button, closes form to the wrong place

Quote:
> I copied a form that is opened from a sub switchboard
> (higher security )
> To be used from a different switch board with lower
> security level.
> My close button was created by the wizards in access 97
> and I need it to close back to the switch board that the
> form was luanched from. It appears to be taking on the
> characteristics of the form I copied from.
> How do I change this.
> My form seems to do what I want. But I cannot use it
> because of security reasons, if it wont go back to where
> it was launched from.
> The place it closes to is inside a  higher level of my
> security and gives operators access to a place I don't
> want them to be.
> Thanks
> Dennis

Please post the code behind the button, and also any code in the form's
Close and Unload events.  Somewhere there must be code that opens
another form with a hard-coded form name, and it's the wrong form.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)



Thu, 24 Nov 2005 06:27:08 GMT  
 Close button, closes form to the wrong place
thank you
I found the code in the on close property of the form, I
made the change in the code and it works fine.
thanks again
Dennis
Quote:
>-----Original Message-----


>> I copied a form that is opened from a sub switchboard
>> (higher security )
>> To be used from a different switch board with lower
>> security level.
>> My close button was created by the wizards in access 97
>> and I need it to close back to the switch board that the
>> form was luanched from. It appears to be taking on the
>> characteristics of the form I copied from.
>> How do I change this.
>> My form seems to do what I want. But I cannot use it
>> because of security reasons, if it wont go back to where
>> it was launched from.
>> The place it closes to is inside a  higher level of my
>> security and gives operators access to a place I don't
>> want them to be.
>> Thanks
>> Dennis

>Please post the code behind the button, and also any code
in the form's
>Close and Unload events.  Somewhere there must be code
that opens
>another form with a hard-coded form name, and it's the
wrong form.

>--
>Dirk Goldgar, MS Access MVP
>www.datagnostics.com

>(please reply to the newsgroup)

>.



Sat, 26 Nov 2005 02:24:20 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Disable Access Close Button not Form Close Button?

2. User Form close buttons and timer close

3. Cancel/close form command button causes app to close

4. Close command button allows form to be closed when required fields are left blank

5. Problem with Controlled Closing of a Form when exiting throught the Window-Close-Button

6. Form Close Vs Close Window button problem

7. Cancel/close form command button causes app to close

8. Prevent user from closing form using caption close button

9. Closing a form when other form is opening but reopening when all forms closed

10. close all child forms before closing parent form?????


 
Powered by phpBB® Forum Software © phpBB Group