11. december 2002 - 11:58Der er
24 kommentarer og 1 løsning
Access kan ikke lukkes ned korrekt??
Jeg har lavet en Access-applikation til registrering af opgaver som udføres forskellige steder i vores virksomhed. Den består af en backend-databasefil, som indeholder data og front-end applikationer, som brugere gemmer i deres dokumentmappe, og som giver dem adgang til de fælles data.
Problemet som jeg gerne vil have hjælp til at løse er, at brugere kun kan åbne front-end applikationen én gang. Hvis man lukker ned og forsøger at åbne igen sker der noget mystisk: Der dannes en lock-file, men der vises ingen skærmbilleder.
Herefter er der INGEN mulighed for at starte applikationen igen, med mindre man åbner Windows Job-liste, og afslutter ACCESS.EXE
Jeg håber at nogle kan komme med et løsningsforslag til hvordan men kan lukke Access ordentlig så man ikke bliver nød til at afslutte Acceess via Joblisten.
Med version 7 af TeamShare tager Lector næste skridt og bygger en platform for AI-agenter, der i højere grad kan følge medarbejderen gennem hele arbejdsprocessen.
How are you closing Access at the moment? You can place a buttin on the main form using the wizard. Here you can choose to EXIT Access. Although I do not think this is the problem. If you are making any connections in code the make sure they are all closed correcty. Also if you are automating other Office applications, make sure you clean up after use.
I’m using the command ” DoCmd.Quit” to close the database. By the way, the front-end and back-end are linked together. I think you are right about not having closed the connection correctly, but how do I do that?
Søren, you dont need to reject any answers until you are ready to close the question. Then you can either reject or accept the answers given. This saves us having to place an answer again and we can just give a comment, although it doesnt really matter. I think it wil save you some time though!
well here is your problem! I have NO IDEA, what it is you are trying to do here so I can not make any suggestions as to what you should do instead. If you remove these lines you get no problem! You can see the lines I have commented out. What I dont understand is that you are passiing the contents of Forms![f_stam_1]![f_stam_bru].Form![team] which is a text value to, which in some cases contains NULL, to a function which is especting an object of some sort. Then your trying to set ctlList which is a control to point at this object (which may be NULL) and then requery it!!!! So I have to ask, what is it your trying to do?
FORM = f_stam_1
Private Static Function OpdaterKombi(feltnavn As Object) Dim ctlList As Control
'Set ctlList = feltnavn 'ctlList.Requery End Function
'Opdater disponereingsoversigten '---------------------------------------------------------------------------- Private Sub OpdaterDispo() On Error GoTo Opdater_Err
søren>It took me over and hour to fincd this problem, and it may take me just as long for the next. I am guessing that you have roughly the same problem here too so it was maybe an idea to try and find it yourself.
You know your program better than I do so you should be able to debug your way through the program. The error will VERY likley be in the form you are setting the date field. Comment out as much as possible, now the error shouldnt occur. Then start un-commenting until the error occurs and you should now see the problem. It just takes time :o)
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.