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

i got a problem with a database

Status
Not open for further replies.

kpyo

Programmer
Jan 24, 2006
8
CA
i got a script to backup my files when i try to quit the layout but everytime i press on the bouton to quit, the script loops and asks me the same question twice before closing the layout. does neone know whats wrong ?
 
If you post the contents of your logoff script it would be easier to troubleshoot.

One thought; If you have a button that runs your logoff script that would obviously be the source of your first prompt but if you also set (under File | File Options) that same script to run on file close that could be the source of the second prompt. This MAY be the problem but it is difficult to know without any details.

-Striker
 
Although I agree with Striker about posting the or a part of the script, if you have developer/advance, you could use script debugger to test the script and see where it goes wrong.

If not, pause the script at the point shere you think it goes wrong.
 
sorry guys, first time i am using this program and the program i have to fix isnt mine but heres the code i remade for a button in the layout and the script i made to exit and save
--------------------------------------
Show message ("")
if ("Status(currentmessagechoice) =2")
Halt scrip
end if
if ("status(currentmessagechoice) =3")
save a copy as ("Filename")
save a copy as ("Filename")
end if
Close("BD_vehicule")
--------------------------------------

 
also striker i checked for the second prompt and i dont find it (i am using a mac and its killing me but work is work) so to my knowledge, i dont think there is a second prompt.
And jean i do not have developer/advance and i am really confused to why a simple script like this would bug
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top