Lookup all possible matches in access

Ebraham

Board Regular
Joined
Mar 21, 2015
Messages
215
Hi

I have one master table and other as accounts table. In master table i have around 7-8 columns out of which two columns are account number and email_ids. and in accounts table i have several columns out of which one column is account number.

i want to create a query which Vlook-up all possible matches of email ids on the bases of account number in one cell field from master table.

To better understand this is how i do in excel link . i am looking for a similar solution in access.
 

welshgasman

Well-known Member
Joined
May 25, 2013
Messages
885
Yes, you can query an Access DB from Excel.

Google that phrase or add with VBA
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Jalal Kasmani

New Member
Joined
Feb 14, 2015
Messages
45
Office Version
  1. 365
Platform
  1. Windows
I have the code for connection but I was looking something similar as above where the master data will be in access but the other accounts table will be in excel so the user will query access database master table for fetching the all possible matched email ids in the last column. Is that possible? Can you throw some lights on it.
I am thinking of creating a button in excel which will ask user to select the range of accounts in excel and once that is selected it will go to access database master table and fetch all possible email ids in the last column in excel.
 

welshgasman

Well-known Member
Joined
May 25, 2013
Messages
885
No, as I have only accessessed Excel from Access, not the other way around. Even then the Excel wokbook was linked so just looked like a table to Access. Sorry.
 

alansidman

Well-known Member
Joined
Feb 26, 2007
Messages
6,229
Office Version
  1. 365
Platform
  1. Windows
See if this link helps you.

 

Ebraham

Board Regular
Joined
Mar 21, 2015
Messages
215
with larger datasets of 1M rows , access hangs with the above approach for lookup all matches within access, any idea ?
 

xenou

MrExcel MVP
Joined
Mar 2, 2007
Messages
16,836
Office Version
  1. 2019
Platform
  1. Windows
be sure your table is indexed on the fields that are required for your searching. For instance, if you were searching based on Where FieldX = 'abc' then FieldX would be a candidate for indexing. Depending on the size of your dataset (it sounds large) then it might be time to consider a more robust DB solution.
 

Watch MrExcel Video

Forum statistics

Threads
1,132,823
Messages
5,655,479
Members
418,205
Latest member
jacc99

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top