Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic filling of DBCombos & DBlists

Status
Not open for further replies.

Aristarco

Programmer
Jun 19, 2000
77
MX
I'm trying to find out how can I fill a <i>DBCombo</i> with the data in an Access Table when I select an Item in another DBCombo that was prefilled with another Access Table. I have a combo called <b>Program</b>. Let's say I choose <FONT FACE=monospace>Telephony</font>, the second <i>DBCombo</i> called <b>SubPrograms</b> should only contain <FONT FACE=monospace>Repair, Installation, Construction</font>. Then if I change my mind and choose the <FONT FACE=monospace>Museum</font> Program, the SubPrograms Combo should only contain <FONT FACE=monospace>Restoration, Rescue, Funding</font>. And So On.<br>The Programs have an ID number in a Table called programs. The Subprograms in the subprograms table have the ID number of the program they belong to. I've tried to make an SQL string in the <b>Change</b> and <b>LostFocus</b> events to update the second combo but not to avail. <font color=red>Can you help?</font> I need to show a prototype next monday!!!
 
the onchange event is where you'd change your recordsource. <p>nick bulka<br><a href=mailto: > </a><br><a href= > </a><br>
 
Thanks Nick! But I've found that the problem appeared because I didn't use the adcmdType=adcmdText instruction. When I wrote this, the SQL string worked properly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top