I have a form that selects Contacts from the contacts table to enter donations in the Donations table. Because there are companies and individuals in contacts (fistname, lastname and companyname fields) I set up the box to select as follows
SELECT Contacts.ContactId, IIf([companyname] Is Null,[lastname],[companyname]) AS Expr1, IIf([CompanyName] Is Null,[firstname],[mailinglabelname]) AS Expr2 FROM Contacts ORDER BY IIf([companyname] Is Null,[lastname],[companyname]);
When I first did it, you could start typing in teh name and it would jump to the J's for example. Now it does NOTHING and you have to scoll through 1600 entires to get to the contact you want to find.
ContactID is an autonumber primary key field from Contacts. I need to be able to type in what appears in the First Visible Column (bound colum is column1, but it is set to ZERO width so what you see in the 2 visible colums are last name first name for individuals and Company Name malinglabelname for companies.
SELECT Contacts.ContactId, IIf([companyname] Is Null,[lastname],[companyname]) AS Expr1, IIf([CompanyName] Is Null,[firstname],[mailinglabelname]) AS Expr2 FROM Contacts ORDER BY IIf([companyname] Is Null,[lastname],[companyname]);
When I first did it, you could start typing in teh name and it would jump to the J's for example. Now it does NOTHING and you have to scoll through 1600 entires to get to the contact you want to find.
ContactID is an autonumber primary key field from Contacts. I need to be able to type in what appears in the First Visible Column (bound colum is column1, but it is set to ZERO width so what you see in the 2 visible colums are last name first name for individuals and Company Name malinglabelname for companies.
Last edited: