Avatar billede myanimalfarm Nybegynder
13. marts 2003 - 15:20 Der er 8 kommentarer og
1 løsning

Kan ikke vælge værdi i kombinationsboks

Jeg kan se de rigtige værdier i min kombinationsboks men har ikke mulighed for at vælge dem. Hvilke grunde kan der være til det????
Formularen hvor dette bruges er baseret på en forespørgsel men kombinationsboksen er baseret på en tabel. Kan dette have noget med sagen at gøre. Har også prøvet at lave kombiboksen på forespørgslen men det virker ikke. Jeg kan ikke vælge noget!!
Forslag???
Avatar billede terry Ekspert
13. marts 2003 - 15:38 #1
are you sure that the enabled property is set to YES?
Avatar billede terry Ekspert
13. marts 2003 - 15:42 #2
If the query is NOT updatable then you can not change the underlaying record if the combo is bound to one of the fields. Can you change any other fields on the form?
Avatar billede terry Ekspert
13. marts 2003 - 15:43 #3
If there is more than one table in the query then there is a good chanced that you will not be allowed to update the data in the form and that is why you can not choose from the combo as this will change that data.
Avatar billede myanimalfarm Nybegynder
13. marts 2003 - 15:49 #4
You are right! I can't add a record in the query. I've checked my relations and as far as I can see they are all right. one-to-many. what can be wrong??
Avatar billede terry Ekspert
13. marts 2003 - 16:17 #5
you should NOT have a one to many relationship in the query this is the reason why you can NOT update.
You need to have a main form with a sub form. The main form is for creating a single record on the one side of the relationship and the sub form is for creating records on the many side of the relationship.
Try using the form wizard for creating the forms. Add both tables NOT the query!
Avatar billede terry Ekspert
13. marts 2003 - 20:02 #6
myanimalfarm>hows it going?
Avatar billede myanimalfarm Nybegynder
14. marts 2003 - 08:15 #7
Hiya! just got back to work...will try your suggestion..
Avatar billede myanimalfarm Nybegynder
15. marts 2003 - 09:14 #8
Well...the problem isn't solved yet...but I think there is an initial fault in the design of database...so it goes deeper...we're trying to go through it all now...hard when I didn't do it myself...but you helped me a great deal along the way so VOILA! 60 points...
Avatar billede terry Ekspert
15. marts 2003 - 12:49 #9
:o)
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