Hi all,
I'm only new here and my access skills are not all that crash hot.
I'm using access 2007 and have been upgrading an old Access 95 database - has been many challenges, but it's coming along pretty well. I am also making some modifications to expand the capabilities of the database.
Where I am stuck is that I have a form that we will use to generate letters from Access into a Word template. I have most of this running fine so far.
The form shows a summary of the project details and also lets you select from a list of contacts from the client assigned to the project.
I have a list box that will show a list of the contact names and this works fine - but what I was hoping to do was create a cascading list from this that would show options for how to address the selected person.
For example, say the client for the selected project is "Disney Land"
This client has the following contacts:
Donald Duck
Daisy Duck
Mickey Mouse
These names are stored in a contacts table and are identified by a ContactID - this is what is used to filter down the names on form load. Each name is split into First/Last/Middle and has a salutation assigned to it - Mr/Miss/Mrs etc..
If I select Donald Duck, I would like to have a combobox that will show the following:
Dear Donald
Dear Mr. Duck
Dear Donald Duck
Dear Sirs
The problem that I'm having is that I can't figure out how to generate these options from the one name selection - I can't work out a query to return this info as it would list the options all in one line - i.e. Dear Donald | Dear Mr. Duck |Dear Donald Duck | Dear Sirs would all appear as in the one row of the combobox in a query.
Any thoughts/tips on how to take the one contact from the listbox and generate naming opitons of:
[First]
[First] & " " & [Last]
[Prefix] & " " & [Last]
"Sirs"
Sorry if this has been covered, but I'm even having trouble coming up with a search term to help with this one that is not standard combobox info.
Thanks for any help,
Shlincoln
I'm only new here and my access skills are not all that crash hot.
I'm using access 2007 and have been upgrading an old Access 95 database - has been many challenges, but it's coming along pretty well. I am also making some modifications to expand the capabilities of the database.
Where I am stuck is that I have a form that we will use to generate letters from Access into a Word template. I have most of this running fine so far.
The form shows a summary of the project details and also lets you select from a list of contacts from the client assigned to the project.
I have a list box that will show a list of the contact names and this works fine - but what I was hoping to do was create a cascading list from this that would show options for how to address the selected person.
For example, say the client for the selected project is "Disney Land"
This client has the following contacts:
Donald Duck
Daisy Duck
Mickey Mouse
These names are stored in a contacts table and are identified by a ContactID - this is what is used to filter down the names on form load. Each name is split into First/Last/Middle and has a salutation assigned to it - Mr/Miss/Mrs etc..
If I select Donald Duck, I would like to have a combobox that will show the following:
Dear Donald
Dear Mr. Duck
Dear Donald Duck
Dear Sirs
The problem that I'm having is that I can't figure out how to generate these options from the one name selection - I can't work out a query to return this info as it would list the options all in one line - i.e. Dear Donald | Dear Mr. Duck |Dear Donald Duck | Dear Sirs would all appear as in the one row of the combobox in a query.
Any thoughts/tips on how to take the one contact from the listbox and generate naming opitons of:
[First]
[First] & " " & [Last]
[Prefix] & " " & [Last]
"Sirs"
Sorry if this has been covered, but I'm even having trouble coming up with a search term to help with this one that is not standard combobox info.
Thanks for any help,
Shlincoln