|
-
Oct 31st, 2000, 05:08 PM
#1
Thread Starter
PowerPoster
Please Try this quick program:
Example to work out:
2 text boxes:
1 adodc control:
1 data list:
Use the NWIND.mdb from VisualStudio folder
Set the first text box to the customer ID
Set the second text box to customer name
Set the list to the Customer ID
As I scroll through using the adodc control, all fields are continous changed. Yet say i click on a customer ID from the list, is there a way to get the fields to change like they were using the adodc control??? ehhh been stuck on this one..I'm probably just over looking something.
Thank you
-
Oct 31st, 2000, 06:49 PM
#2
Hi Lethal,
If you are using MS DBList then you can simply do
Code:
'set the RowSource of DBList1 to Data1
'set the ListField to "CustomerID"
Private Sub DBList1_Click()
Data1.Recordset.Bookmark = DBList1.SelectedItem
End Sub
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Oct 31st, 2000, 08:15 PM
#3
Thread Starter
PowerPoster
I'm getting closer..
Thank you, i'm getting closer now.
I just tried that, it's giving me an error saying object doesn't support this property or method.
-
Oct 31st, 2000, 08:46 PM
#4
Hi,
I have a feeling that you are using the wrong Control. Instead of using Microsoft Data Bound Grid you are using Microsoft Dta Grid. They look almost the same and share almost all the properties. I know this coz i made the same mistake !!
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Oct 31st, 2000, 09:02 PM
#5
Thread Starter
PowerPoster
.
I'm using the right control, i'm just wondering are you saying to use two data controls, one adodc and one dao??
thaknks
-
Oct 31st, 2000, 09:25 PM
#6
Hi,
Sorry i didnt read your question properly and didnt realise that you are actually using ADODC control, i assumed u r using Standard Data Control.
Try the following code, this one is using ADDOC control and i am also using Microsoft DataList Control.
Code:
Private Sub DataList1_Click()
Adodc1.Recordset.Bookmark = DataList1.SelectedItem
End Sub
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Oct 31st, 2000, 10:02 PM
#7
Thread Starter
PowerPoster
..
Ya, if it's working for you it must be right. Mine still isn't working, i must have my fields linked wrong or something?? I'll keep working on it, thanks again
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|