Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,
I want to use vlook up in visual basics with database in ms access. I have data in three columns in ms access. In VB studio, i want to generate my answer which depends on values of first two columns. Therefore I put two combo box to choose values and want to link it to three text box to get my answer.
Can someone please help
Thanks
Vik
Posted

1 solution

No Solution here, wrong tool, wrong application.

VLookup is an Excel function to search in a table which is on an Excel worksheet. Secondarily, the search is done in the first column only.(oops bad translation).

VB's Vlookup is working on an array only.

For Access, I don't know enough to give you details. I just think you have to use an SQL request with filter containing your conditions.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900