My app is connected to 3 SQL tables (tblCompanies, tblContacts, and tblProposals).
I've created a datagrid to maintain the data from tblProposals. This datagrid contains the following 4 fields: [CompanyName],[ContactName], [ContactTitle], and [ProposalID].
When the user clicks 'Edit', the [CompanyName] textbox changes to a drop-down list of possible companies from tblCompanies. Once this is selected, I need the [ContactName] drop-down list to populate with all Contacts from the selected [CompanyName] field. Any idea how this can be accomplished?
Furthermore, I would like the [ContactTitle] field to remain a label when 'Edit' is clicked, but automatically populate with the title that is associated with the selected [ContactName] in tblContacts.
I hope I haven't confused anyone, but any help/direction would be greatly appreciated.
Thanks,
Boyd
I've created a datagrid to maintain the data from tblProposals. This datagrid contains the following 4 fields: [CompanyName],[ContactName], [ContactTitle], and [ProposalID].
When the user clicks 'Edit', the [CompanyName] textbox changes to a drop-down list of possible companies from tblCompanies. Once this is selected, I need the [ContactName] drop-down list to populate with all Contacts from the selected [CompanyName] field. Any idea how this can be accomplished?
Furthermore, I would like the [ContactTitle] field to remain a label when 'Edit' is clicked, but automatically populate with the title that is associated with the selected [ContactName] in tblContacts.
I hope I haven't confused anyone, but any help/direction would be greatly appreciated.
Thanks,
Boyd