Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compare/Contract

Status
Not open for further replies.

ajshap1

IS-IT--Management
Joined
Jan 17, 2007
Messages
3
Location
US
How can I compare and contract two or more data tables within access? I am looking for a similar function to Excel's VLookup but with more detail.

I am trying to ensure the data from different tables is a mirror image of each other. If there is any missing data, or the data is not the same, I need excel to highlight that area.


Thanks
 
Hmmmm

VLookUp just does a search of a column and returns a value from an associated column (or optionally an error if the value isn't found.)

That doesn't sound like something that would allow you to determine if two tables are identical.

Can you provide some information about the tables?

... and Access is a relational database ... not a spreadsheet. Why do you have or need two identical tables?
 
Hi,

My question was not posted with enough info. I have two spreadsheets that I need to compare to make sure they are the same. If there are any deviations from those spreadsheets, then I need Access to tell me.

The spreadsheets have the same header rows and the data is alpha numeric.

How can this be done within Access?

Thanks for your help!!
 
i'll not propose to be able to answer your question, but only to inquire.

do you mean to compare the 'content' (e.g. the cell visible contents) or the entire details, including any conditional formats to the cells, and other atributes (boraders, shading, value format (such as currency, accounting. etc) - go on to check macros, procedures and declarations?

Are the spreadsheets "standalone" or do either (or both) reference other data stores?

The answer could give potential responders a better guide to providing your answer.

The first situation is just a lot of detailed effort. Like the two spreadsheets to an Access db (Files -> get external data) and write some code. perhaps a 'quick and dirty' would be to find one of the several/many CRC procedures and apply it to all of the fields of all of the records in each data set and then simply compare the values. If they are the same, the files (at least the data parts) are the same. unfortunatly, if the comparision reveals and difference, you only know that there is a difference, and would need to then write the other routine -which would compare each field in each record between the two recordsets, flagging / reporting each item which is different. If the two are NEARLY the same it could return a modest list. but even 'small' differences could produce a large volumn of mis-matches. some preperation of the spreadsheets could be useful, such as making sure that coulmns were arranged identically, all text in the same "Case" (upper or lower); etc, one "preperatoion" I am SURE I would want to include would be to delete all cells which include or are the targes of any calculation. These would generally be redone in MS Access and even trivial differences in the calculation would usually result in a mis-match.

Altogether, I would like to avoid the exercise, as I generally find excel users to have little concept of the level of discipline usual in database operations, allowing casual changes to creep into the systems, and thus destroying their compatability.




MichaelRed


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top