structure field name

yogi

Registered User.
Local time
Today, 14:11
Joined
Mar 26, 2007
Messages
47
I have 2 tables.
1 tables cointains field_name

2 tables contains data


I want to create a query that I could use the field_name from table 1 (loop thru table1 )to see if the field_name exist in table 2

thanks
 
not query but in code

fldexists = len(currentdb.tabledefs("targettable").fields("targetfield").name)>0

however this test will fail if the field doesnt exists, so you need to trap the failure
 
i could used this code to go thru a table or loop thru every fields.
 

Users who are viewing this thread

Back
Top Bottom