OK. I understand that the punctuation is critical in SQL statements but, come on:
The only field I don't want returned is PropertyCommonName.....and it's just not cooperating.Code:Sql = "SELECT Occupant, Telephone#, EmergencyContact, EmergencyCntNum FROM Occupant WHERE PropertyCommonName = '" & Propertyname & "'"
I have seen examples that use SELECT Table1.Field1 as field That doesn't cut it either.
Can anyone see what I can't here?




Reply With Quote