verticaal zoeken in access

Status
Niet open voor verdere reacties.

Rene Fuhner

Gebruiker
Lid geworden
23 mei 2001
Berichten
545
Hallo allen,

Ik ben bezig met een database. Nu heb ik een tabel (en query) waar ik data heb staan. Nu wil ik via verticaal zoeken, een bepaald gegeven naar een andere tabel/query krijgen.

vb.
Wanneer je in een bepaald veld een naam intypt, moet access automatisch een waarde copieren uit een andere tabel/query.

Weet iemand of dit mogelijk is? Zo ja, hoe ik dit voorelkaar krijg (was zelf aan het stoeien met "Dlookup").

Alvast bedankt,

René
 
Je zegt het eigenlijk zelf al, VERTICAAL zoeken... met vlookup mischien?

Uit de helpfile van access:
VLOOKUP
Searches for a value in the first column of a table, and then returns a value in the same row from a column you specify. By default, the table must be sorted in an ascending order.

Syntax

VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)

Lookup_value is the value in the first column of the table, and can be a value, a reference, or a text string.

Table_array is a reference to a table of text, numbers, or logical values from which data is retrieved.

Col_index_num is the column number in table_array from which the matching value should be returned. The first column of values in the table is column 1.

Range_lookup is a logical value: if FALSE, the function finds an exact match; if TRUE or omitted, the table must be sorted in an ascending order and the function finds the largest value that is less than or equal to lookup_value.


Grtz,
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan