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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PULL DATA FROM EXISTING TABLES

Status
Not open for further replies.

DIVINEDAR0956

IS-IT--Management
Aug 15, 2002
95
US
I have 5 tables that I need to pull data from. The common field among these table is the Project Number. How can I ask one table if the project number exist and have it pull the information from all 5 tables.

Can a query be done to ask for a certain project number and check all tables. If the information exist transfer the information from the storage tables to the edit tables in a different database.

A generic idea is all I'm looking for.

Thank you.

Darlene[openup]
 
My impression is that your wishes ar too diverse to put it in one query. My advise: start programming. Create recordsets (i prefer ADO recordsets) and loop through the recordsets that you create. Decide what to do with a certain record, depending on the value of fields that you evaluate. If passed evaluation then add to table in other DB.
Is 'ProjectNumber' the only parameter you need te evaluate?

If you don't want to create VBA-code and the 5 tables are related to each other, perhaps you could create a parameter-query.
With a parameter-query you can add a criterium 'on the fly'.

I hope you understand what i mean. I use MS Office Pro Dutch. I've never seen the English terms.

I hope my comment inspires you.

Greeting, Bart Verlaan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top