18. marts 2002 - 10:00Der er
4 kommentarer og 1 løsning
Listbokse, formularer og forespørgsler
På hovedformularen er der en listboks, som, når der dobbeltklikkes på et element i boksen, skal åbne en anden formular, som repræsenterer de for elementet underliggende data (lidt a la Master-Detail) Problemet er at det ikke er elementets liste-værdi jeg skal bruge, men en af de værdier der står i elementet:
When I click a certain element in the list, I want to open another form using a macro (unless there's an easier way!)..........that macro opens the form with the WHERE clause set to: [Forms]![Mammografi - Hovedmenu]![CPR]=[Forms]![Formular1]![Liste0] But CPR is a number (i.e. 1212232201) and the value of Liste0 is an index......I just can't see how I can "connect" the two! :( :( :( ARRRGGHHH
if youplace a button on the main form using the wizard you can create the code toopen another form using the selection from you listbox. This will use the index as you say yourself. In th elsitbox do you not have the CPR number in one of the other columns? If youdo then you just alter the code to use the column containing the CPR number. Lets say column 1 in th elsit contains th index and column 2 the CPR number.
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.