Y yogi Registered User. Local time Today, 14:11 Joined Mar 26, 2007 Messages 47 Jun 11, 2007 #1 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
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
gemma-the-husky Super Moderator Staff member Local time Today, 19:11 Joined Sep 12, 2006 Messages 15,992 Jun 12, 2007 #2 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
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
Y yogi Registered User. Local time Today, 14:11 Joined Mar 26, 2007 Messages 47 Jun 12, 2007 #3 i could used this code to go thru a table or loop thru every fields.