Ahhh, I think I understand now. I've attached an example (A2K format) to demonstrate what I tried (unsuccessfully
) to explain. It was easier to throw together a demo.
I do see things that you should be aware of.....
Object names in Access should only contain letters, numbers and the underscore. (And some don't even use the underscore). You have used spaces and dashes in some field names. If you ever want to convert the dB to SQL Server, SQL Server will choke - horribly.
Object names like "Date", "Time" & "Name" are reserved words and shouldn't be used as object names.
Here is a list of reserved words: http://allenbrowne.com/AppIssueBadWord.html
Also, "Name" is not very desciptive. "Name" of what?? In two years, if this dB has to be modified by someone else, it will be harder to figure out what "Name" is referring to. And two (or more) tables have the field name of "Name" in the same query, you have to include tables names or Access complains.
In this SQL for List30, I try to have the bound field as the first field in the query. It makes it easier to get the PK for the record. If it is not the first field, you have to use the "Columns" property to get the PK.
This looks like the SQL for List 30:
Code:
SELECT Mediaorgs.Name, Mediaorgs.[Organization ID], Mediaorgs.Phone, Mediaorgs.Fax, Mediaorgs.Email, Mediaorgs.Address, Mediaorgs.City, Mediaorgs.PostalCode, Mediaorgs.[Sub-Type], Mediaorgs.[Non-Profit], Mediaorgs.Website
FROM Mediaorgs
ORDER BY Mediaorgs.[Sub-Type], Mediaorgs.Name;
I would have had the query fields in this order:
Code:
SELECT Mediaorgs.[Organization ID], Mediaorgs.Name, Mediaorgs.Phone, Mediaorgs.Fax, Mediaorgs.Email, Mediaorgs.Address, Mediaorgs.City, Mediaorgs.PostalCode, Mediaorgs.[Sub-Type], Mediaorgs.[Non-Profit], Mediaorgs.Website
FROM Mediaorgs
ORDER BY Mediaorgs.[Sub-Type], Mediaorgs.Name;
In the "Column widths" property of the list box, the first column ("Organization ID") would be zero to hide the column. If it is an autonumber, the users shouldn't see it. See: http://access.mvps.org/access/general/gen0025.htm