|
-
Jun 4th, 2000, 08:14 PM
#1
Thread Starter
Member
data control binding??????????
Hi all
I want to know if I can achieve the followings when using an ADO control on the form:
Dim dbSe As Connection
Dim recSet2 As Recordset
Set dbSe = New Connection
dbSe.Provider = "msdasql"
dbSe.ConnectionString = "dsn=Xtreme sample" _
& "data;uid=sa;pwd=;"
dbSe.Open
Set recSet2 = New Recordset
recSet2.Open "select * from customer", dbSe, _
& adOpenDynamic, adLockPessimistic
txtFields.DataField = "Customer ID"
Set txtFields.DataSource = adoPrimaryRS
I got a ADO control on the form called 'adoRecset' which refers to a DSN and then for its recordset to a table call 'customer'.
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
|