Lookup all possible matches in access

welshgasman

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

Google that phrase or add with VBA
 

Some videos you may like

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Jalal Kasmani

New Member
Joined
Feb 14, 2015
Messages
42
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
839
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
5,788
Office Version
2019
Platform
Windows
See if this link helps you.

 

Ebraham

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

xenou

MrExcel MVP, Moderator
Joined
Mar 2, 2007
Messages
16,687
Office Version
2013
Platform
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.
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,272
Messages
5,510,277
Members
408,784
Latest member
MarcianoPL

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top