Avatar billede nyholm Novice
24. februar 2008 - 15:47 Der er 14 kommentarer og
1 løsning

Konflikt i referenser?

Jag anvænder føljande referenser i min db:
1. Visual Basic For Applications
2. Microsoft Access 11.0 Object Library
3. OLE Automation
4. Microsoft DAO 3.6 Object Library
5. Microsoft Windows Common Controls-2 6.0(SP6)
6. Microspft Office 12.0 Object Library
Min fråga ær om ref.nr 5 på något sætt kan vara i konflikt med annan referens? Ref. har med en Aktive-X som heter MSCOMCT2.OCX och ær en kalender som datum væljs ifrån.
Anledningen till frågan ær att jag ibland får ett felmeddelande som sæger: "Fæltet ær før litet før det værde du førsøker klistra in...". Felmeddelandet har inget med verkligheten att gøra utan har sin grund i att AktiveX kontrollen på något sætt kommer i felaktigt læge.
Avatar billede terry Ekspert
24. februar 2008 - 16:36 #1
5. Microsoft Windows Common Controls-2 6.0(SP6) uses MSCOMCT2.OCX
You can see which ActiveX controls it includes here.
http://support.microsoft.com/kb/297381

Have you tried compiling your database? Normally if the is a Reference problem then you will get an error
Avatar billede nyholm Novice
24. februar 2008 - 17:04 #2
I know the conection between ref.nr 5 and this OCX, but sometimes something goes wrong with this AktiveX. Yes I have compiled the db and with no errors.
I know 100% that the error msg mentioned before has to do with this AktiveX and it seems as it sometimes does not complete. When this occures the db can't be compressed and repaired do to the AktiveX is running.
The symtoms is also that fields of the form can show values that does not exist.
Avatar billede terry Ekspert
24. februar 2008 - 17:18 #3
You could try downloading the OCX from the link I gave and see if its newer. I've used this control many times withoyt any problems. Are you 100% sure that you arent using the wrong data length/type? "Fæltet ær før litet før det værde du førsøker klistra in..."
Avatar billede nyholm Novice
24. februar 2008 - 17:25 #4
It is the newest version I'm using. No it's not the wrong data length/type.
After closing and opening the db 2 or 3 times the problem disappears.
Avatar billede terry Ekspert
24. februar 2008 - 17:41 #5
Well all I can suggest is not using the control and try finding another component to replace it.
http://www.mvps.org/access/forms/frm0050.htm
Avatar billede nyholm Novice
24. februar 2008 - 18:18 #6
Thanks Terry, but I will try and find out exactly what's bringing this AxtiveX out of order. Then perhapes a solution can be found.
Avatar billede terry Ekspert
24. februar 2008 - 18:34 #7
Does the problem occure on just on ePCor do you have the same problem on every PC?
Avatar billede nyholm Novice
24. februar 2008 - 18:42 #8
It has happened on several pc's.
Avatar billede hugopedersen Nybegynder
24. februar 2008 - 18:51 #9
Hvorfor ikke bare bruge den dato funktion der er indbygget i Access 2007 (Office 12) Den fungere ganske fornuftigt - ulig så mange andre ting i Access 2007
Avatar billede nyholm Novice
24. februar 2008 - 18:58 #10
Hi hugopedersen! You mentioned something now. I'm not running Access 2007, but Access 2003.
Avatar billede nyholm Novice
24. februar 2008 - 19:12 #11
I don't know why the reference is set to Microspft Office 12.0 Object Library, insted of Office 11.0. Can it be here where the problem is?
Avatar billede hugopedersen Nybegynder
24. februar 2008 - 19:18 #12
Ja så er det jo lidt underligt hvor referencen til Office 12 er kommet fra. Jeg har dog set det ske hvis man installeret enten Visual Basic Express 2008 eller det der kompatibilitets værk så Office 2003 kan læse filer fra f.eks. Word 2007
Avatar billede nyholm Novice
24. februar 2008 - 19:25 #13
Anyhow, now I have set the reference to Office 11.0. Let's hope it was as simple as this. Since it does'nt occure frequently, I have to wait and see.
Avatar billede nyholm Novice
18. september 2008 - 10:48 #14
This is an old question that is still open. It was the reference to Ms Office Object Library that was wrong. hugopedersen, You set me on the right track, so send me an answer so I can give You the points.
Avatar billede hugopedersen Nybegynder
18. september 2008 - 11:32 #15
OK - det gør jeg da gerne :-)
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