Trying to use bookmark to set value of a text control after record selected in datacombo
- From: Oscar Meyer <Oscar@xxxxxxxxx>
- Date: Mon, 08 Jan 2007 16:03:38 -0500
I am using VB6 in Windows 2000.
I have two controls on a form. One is the order datacombo and the
other is a text control to show the price for the order selected in
the datacombo.
The datacombo is hooked up to an adodc data control.
When the user selects the order number from the data control, I would
like to fill the text control with the order price.
My source for the adodc control is "select orderNum, price from
orders".
It would seem like I should be able to use the Change event of the
datacombo to get the recordset's current record's value of the second
field (recordset.fields(1)) and show it in the text control.
However, this is not working. Do I need to use a bookmark for this?
Is there an easier way? It seems like it should be easy to do.
Can't two controls be hooked up to the same data control and report
different fields, synchronized by a bookmark?
I have tried to figure this out from Help and Google but can't find
exactly how to do it.
Thanks.
.
- Prev by Date: Re: VB6 Modify MS Access 2003 Field Names
- Next by Date: Re: RecordCount returns -1
- Previous by thread: VB6 Change all records in specific table
- Next by thread: Text File To SQL Server Using VB6
- Index(es):
Relevant Pages
|