Peter Ramshaw
Registered User.
- Local time
- Today, 08:49
- Joined
- Feb 17, 2011
- Messages
- 26
Since posting I tried running the 'Customer Extended" query mentioned below and it DOES find all the records so my initial work arounds may be misconceived.
I suppose it must be an oject that is evoked after bthat query is run that is causing my proble.
In case it helps, here's the 'Row Source' expression tied to the actual 'Customer' field generated by the query:
SELECT [Customers Extended].ID, [Customers Extended].[Customer Name] FROM [Customers Extended] ORDER BY [Customers Extended].[Customer Name];
Any ideas?
Peter R
==================
Hi guys and gals, I hope someone can point me in the right direction.
I have two tables in my database that are linked by an ID field.
One table (Cases) holds case names and comments and status that link back to the contacts details in my main database (in fact the database uses the links in the MS sample database for Customer service or something so I'm not claiming I wrote it.
In this database a form called 'Case List' can be opened. There you can add new cases by searching for conbact's names and assignbing a staus and case name to that record.
Trouble is, the query that generates the 'Case List' (see expression used below) sometimes fails to pick up some name whjich we know are in our main table (Contacts). To get around this I need to either a) modify the lookup below so all records are displayed in the 'Case List' form or b) somehow place a field from Table:Cases (say the Staus one) on a form that does display all our records so I can make that field 'Active' which is then picked up by the query roiutine for the 'Case List' datasheet.
Now no matter how I attempt this, as soon as I put the 'Status' field on a form connected to my 'Contacts' table that form only displays records where there is a status active (like 48 active records out of the 30,000 in the database. Obviously, when I take the field off my normal form, it displays all 30,000+ records again.
There's got to be a simple way around this (I tried chaging all of the fields atributes on the 'normal' form but to no effect.
Anyway, here's the expressions used in the query that runs on opening the 'Case List' datasheet. Somehow it is missing records and I can't work out why. Prob ablky has somethignt o do with Null or "" fields but I can't get past that. It's called 'Cust,mers Extended' and used in a lot of those sample dBases.
Field 1:
File As: IIf(IsNull([Surname]),IIf(IsNull([First Name(s)]),[Company or Group],[First Name(s)]),IIf(IsNull([First Name(s)]),[Surname],[Surname] & ", " & [First Name(s)]))
Field 2:
Customer Name: IIf(IsNull([Surname]),IIf(IsNull([First Name(s)]),[Company or Group],[First Name(s)]),IIf(IsNull([First Name(s)]),[Surname],[First Name(s)] & " " & [Surname]))
Field 3:
Contacts.*
Cheers
Peter R
I suppose it must be an oject that is evoked after bthat query is run that is causing my proble.
In case it helps, here's the 'Row Source' expression tied to the actual 'Customer' field generated by the query:
SELECT [Customers Extended].ID, [Customers Extended].[Customer Name] FROM [Customers Extended] ORDER BY [Customers Extended].[Customer Name];
Any ideas?
Peter R
==================
Hi guys and gals, I hope someone can point me in the right direction.
I have two tables in my database that are linked by an ID field.
One table (Cases) holds case names and comments and status that link back to the contacts details in my main database (in fact the database uses the links in the MS sample database for Customer service or something so I'm not claiming I wrote it.
In this database a form called 'Case List' can be opened. There you can add new cases by searching for conbact's names and assignbing a staus and case name to that record.
Trouble is, the query that generates the 'Case List' (see expression used below) sometimes fails to pick up some name whjich we know are in our main table (Contacts). To get around this I need to either a) modify the lookup below so all records are displayed in the 'Case List' form or b) somehow place a field from Table:Cases (say the Staus one) on a form that does display all our records so I can make that field 'Active' which is then picked up by the query roiutine for the 'Case List' datasheet.
Now no matter how I attempt this, as soon as I put the 'Status' field on a form connected to my 'Contacts' table that form only displays records where there is a status active (like 48 active records out of the 30,000 in the database. Obviously, when I take the field off my normal form, it displays all 30,000+ records again.
There's got to be a simple way around this (I tried chaging all of the fields atributes on the 'normal' form but to no effect.
Anyway, here's the expressions used in the query that runs on opening the 'Case List' datasheet. Somehow it is missing records and I can't work out why. Prob ablky has somethignt o do with Null or "" fields but I can't get past that. It's called 'Cust,mers Extended' and used in a lot of those sample dBases.
Field 1:
File As: IIf(IsNull([Surname]),IIf(IsNull([First Name(s)]),[Company or Group],[First Name(s)]),IIf(IsNull([First Name(s)]),[Surname],[Surname] & ", " & [First Name(s)]))
Field 2:
Customer Name: IIf(IsNull([Surname]),IIf(IsNull([First Name(s)]),[Company or Group],[First Name(s)]),IIf(IsNull([First Name(s)]),[Surname],[First Name(s)] & " " & [Surname]))
Field 3:
Contacts.*
Cheers
Peter R
Last edited: