472,782 Members | 1,148 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,782 software developers and data experts.

Compare Access With Excel Vba Help Please!!!

Hi everyone, i`m trying to make access interact with excel in vba

I have an excel sheet with 3 columns and 30 rows, and an access table of 4000 rows.

The idea is to compare every row of the excel from only one column with every row of my access table from only one column of the same type.

For examle:
My excel has 3 columns: Code, Name, City.
My access table has 4 columns: Code, Name, City, Country.

I want to compare every "Code" of my excel, with every "Code" of my access to find the matches IN ACCESS.

If any could help me with this I would be very very pleased!!
Aug 10 '07 #1
3 1640
FishVal
2,653 Expert 2GB
Hi everyone, i`m trying to make access interact with excel in vba

I have an excel sheet with 3 columns and 30 rows, and an access table of 4000 rows.

The idea is to compare every row of the excel from only one column with every row of my access table from only one column of the same type.

For examle:
My excel has 3 columns: Code, Name, City.
My access table has 4 columns: Code, Name, City, Country.

I want to compare every "Code" of my excel, with every "Code" of my access to find the matches IN ACCESS.

If any could help me with this I would be very very pleased!!
Hi, there.

You can just link Excel table to your db, and use it in Access queries.
Aug 10 '07 #2
Thank you there!, Ok supose now I have two access tables, how do I compare in vba the column1, row 1 of TABLE A, with all the rows of column 1 of TABLE B, then column 1, row 2 of TABLE A with all the rows of column 1 of TABLE B, and so on..this is to find the matches between both tables and make an operation each time there is a coincidence.

Hope you can help with this one!
Aug 10 '07 #3
FishVal
2,653 Expert 2GB
Thank you there!, Ok supose now I have two access tables, how do I compare in vba the column1, row 1 of TABLE A, with all the rows of column 1 of TABLE B, then column 1, row 2 of TABLE A with all the rows of column 1 of TABLE B, and so on..this is to find the matches between both tables and make an operation each time there is a coincidence.

Hope you can help with this one!
Build a query. SQL expression is the following.
Expand|Select|Wrap|Line Numbers
  1. SELECT [TABLE A].*, [TABLE B].* FROM [TABLE A] JOIN [TABLE B] ON [TABLE A].[Column1] = [TABLE B].[Column1];
  2.  
Aug 10 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Neil | last post by:
I have writen a basic database to keep a register of autocad drawings but now i need to do something clever and i have no idea what to do! i need to find a way to send a email to people with the...
1
by: tkaleb | last post by:
I have to create output file in a text, MS Access, MS Excel and .dbf format from C# Win/ADO.NET application. Data are collected in DataSet and there is no problem to make text file. However, I have...
3
by: Omar | last post by:
Hi Developers, I am trying to access an Excel data file through a VB.Net application. I have the following code: =================================== VB.Net Code =================== Dim...
3
by: James Wong | last post by:
Dear all, I have an old VB6 application which can create and access Excel object. The basic definition statements are as follows: Dim appExcel As Object Dim wkb1 As Excel.Workbook Dim wks1...
1
by: Sean Howard | last post by:
I have an Access database/procedure that exports data to an Excel spreadsheet and opens that spreadsheet using automation I need to change the current directory/drive in Excel to be the same as...
0
by: pochimen | last post by:
Hi everyone, i`m trying to make access interact with excel in vba I have an excel sheet with 3 columns and 30 rows, and an access table of 4000 rows. The idea is to compare every row of the...
4
by: Nisio | last post by:
Guys Here's my prob. I work with a group og non-techie guys who are non-PC literate but need to produce exacting detailed reports on a regular basis. They are living proof of a little knowledge...
0
by: Nadirsha Muhammed | last post by:
How to access excel function wizard through C#
2
by: naaniibabu | last post by:
How to upload a values from notepad or (Mainframe fields ) into Excel Sheet ? How to save it ? After getting the values i want to compare 2 excel sheets ? Pls help me anyone for the above...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.