473,387 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 1667
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...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.