Avatar billede Laursen_ Nybegynder
11. februar 2016 - 20:30 Der er 3 kommentarer og
1 løsning

Rapport felt med fejl #Navn?

Hej Eksperter

Hvorfor vises #Navn? i control. Har to stk.


1) Control navn=Varenr_rpt og feltnavn=Varenr

=Left([Varenr];InStr(1;[Varenr];" "))

2) Control navn=Text18

="side " & [Page] & " af " & [Pages]


Begge to har virket?

Nogen ide her?

mvh Jan
Avatar billede terry Ekspert
12. februar 2016 - 13:55 #1
found this on the web


Just a note. On Reports, if you have a control that uses an expression and that expression refers to a field where there is a control with that same name, you need to change the control name. So, if you are using

=[MyText]

and there is a textbox on the form named MyText and it is bound to a field named MyText, then it will generate the #Name error. If you rename the control to txtMyTest and then still refer to the field using
=[MyText]
it will no longer give the error.


__________________
Avatar billede terry Ekspert
16. februar 2016 - 09:15 #2
?
Avatar billede Laursen_ Nybegynder
16. februar 2016 - 09:51 #3
Hi Terry

Sorry, I find ms products odd from time to time. As already written in the thread I did use different names for the controls however this was not enough. So, I changed all on the report and now it works?

Jan
Avatar billede terry Ekspert
16. februar 2016 - 10:37 #4
I agree that MS products can be odd once in a while :-)

Good to hear you found a solution though.
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