August 20, 201510 yr Hi all I'm pulling my hair out with this one, I've tried everything but to no avail, very frustrating as I know it's a simple one. I just want to list the postcode fields from the addresses table, where the log_idf of the mileages table is equal to the current record of the Log_Log table. See pic for the relationship I'm trying to recreate. This is what I have so far: ExecuteSQL ( "SELECT S.Postcode FROM Addresses SJOIN Mileages TON T.Address_IDF_From = S.Address_IDWHERE T.Log_IDF = ?"; ""; ""; Log_Log::Log_ID) TIA Ah sorted now. The field types in the JOIN were not of the same type. BTW, should ID's be set as numbers always? I've always done them as text. Edited August 20, 201510 yr by sal88
August 20, 201510 yr IDs can be whatever type you want them to be; just be consistent across your tables as you have found out...
Create an account or sign in to comment