06. marts 2002 - 18:04Der er
15 kommentarer og 1 løsning
Kryds der afslutter access
Jeg har brug af at fjerne det kryds der afslutter Access. Da brugerne får ændret der skærm størrelse når de åbner db, og da de skal lukke db'en med min egen knap for at komme tilbage til deres oprindelige skærm størrelse. GP
I dette særtema ser vi på, hvordan cloud og AI bliver fundamentet for virksomhedernes digitale forretning, og hvordan de nye muligheder for automatisering og forretningsværdi kan udnyttes uden at miste overblik, sikkerhed og menneskelig kontrol.
You can have a form which you hide and in that form you place code which stops Access from being closed!
To hide the form: Set the forms BorderStyle, ScroolBars, RecordSelectors and NavigationButtons properties to None. Then set the detail sections height to zero. You then need to open this form when your application starts up!
In the forms code module place the following
Public OKToClose as Boolean
In the forms Unload event
If Not OKToClose Then Cancel = True End If
In the form which you close the application place this in a buttons on click event
When you try to close ACCESS either with application.quit or by pressing the X on the main ACCESS form, Access attempts to close all open forms etc. This gives you the chance to save any unchanged data. Access will also try to close the hidden form, so if you have this code In the (HIDDEN) forms Unload event
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.