Avatar billede nyholm Novice
08. november 2005 - 21:35 Der er 4 kommentarer og
1 løsning

Abort open report.

A report opens a form where I make some choices. When clicking an ok button the report then shows the result. If I want to abort I still will be asked for the parameters and after choosing abort in this msgbox I then get a second info saying that the instruction was cancelled. What can i write in the code behind the button Abort in my form so that the report will close and no msgbox pops up?
Avatar billede mugs Novice
08. november 2005 - 21:39 #1
Exit sub
Avatar billede mugs Novice
08. november 2005 - 21:41 #2
Du kan også gå ind i en errorhandler og "måle" på din error:

On error goto errorhandler
din åbningskode
errorhandler:
select case errorhandler
case is = 2501
gør noget
case is = 2502
gør noget andet
end select
Avatar billede mortenottow Nybegynder
08. november 2005 - 22:02 #3
sorry jeg bryder ind

mugs skal lige bruge dig
Avatar billede nyholm Novice
08. november 2005 - 22:07 #4
I think I need to give You more info.
I have a lot of different reports and a selection of reports has the instruction on start to open the form where the parameters are set.
As an example. The Form A has a button that opens a Report that has the instruction to open Form B where the choices are made before the report gives the result. That means that I can'nt use the Exit Sub instruction in Form A and Form B is used by other reports to. do You get the picture?
Avatar billede nyholm Novice
09. november 2005 - 19:21 #5
Cloosing question!
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Dyk ned i databasernes verden på et af vores praksisnære Access-kurser

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester

IT-JOB