>> In one of my VB6 programs, there are several text boxes on a form that
>> are tied to an ADO Data control with the following SQL statement to
[quoted text clipped - 28 lines]
>Generally if it's a one to one match on the joined files it is
>updateable but if it's a one-to-many then it's not updateable.
Thanks, DK. I'm trying to re-design this - I still want to enable the
user to maintain the Projects.CustNum field by viewing/selecting from
the Customer names as stored in another table.
What I'm thinking of now, is to display all available Customer names
in a drop-down list and have the "current" customer (as indicated by
the CustNum) be "selected". IOW, when the user selects a Project, the
Customer Name list would be positioned (using the CustNum) to the
proper customer
Then, if the user changed the customer (by selecting a different one),
the CustNum field would be updated.
But I simply cannot figure out how to do this.
I have the drop-down list (it tied to yet another ADODC which is
connected to the Customers table). But I can't figure out how to
coordinate it with the CustNum in the Projects record.
Can anyone here give me a clue?
Thanks
DK - 26 Feb 2008 19:45 GMT
> >> In one of my VB6 programs, there are several text boxes on a form that
> >> are tied to an ADO Data control with the following SQL statement to
[quoted text clipped - 53 lines]
>
> - Show quoted text -
If I understand you correctly you have 2 combo boxes --- one has the
project record tied to it and the other has the customer id tied to
it. And you want the customer combo box to automatically scroll to the
customer record that is found on the project record.
If that's the case then you will to recort to some API call like
SendMessage to the Customer combo box tomake it scroll to the correct
record. Do a search on CB_FINDSTRING and for SendMessage.