error 3265 when accessing odbc data source through data control 
Author Message
 error 3265 when accessing odbc data source through data control

please help me!!

i'm trying to access sql server odbc datasource with data control and
i get a runtime error 3265, item not found in this collection.
i create a recordset of dynaset type and set the object to
data control's recordset property like this:

set ds = db.openrecordset(strSQL, dbopendynaset)
set data1.recordset = ds  <----
this is where i get the run time error.

can someone help me, plese??

thank you,
chong pil woo



Mon, 07 Jun 1999 03:00:00 GMT  
 error 3265 when accessing odbc data source through data control

Chong:
pls check your strSQL. There are 1 or more fields that your control data1
wanted but did not get from the recordset. Ex: your data1 needs field1,
field2, field3 while your strSQL did "Select field1,field3".
:)


Quote:
> please help me!!

> i'm trying to access sql server odbc datasource with data control and
> i get a runtime error 3265, item not found in this collection.
> i create a recordset of dynaset type and set the object to
> data control's recordset property like this:

> set ds = db.openrecordset(strSQL, dbopendynaset)
> set data1.recordset = ds  <----
> this is where i get the run time error.

> can someone help me, plese??

> thank you,
> chong pil woo




Wed, 09 Jun 1999 03:00:00 GMT  
 error 3265 when accessing odbc data source through data control

Quote:

> please help me!!

> i'm trying to access sql server odbc datasource with data control and
> i get a runtime error 3265, item not found in this collection.
> i create a recordset of dynaset type and set the object to
> data control's recordset property like this:

> set ds = db.openrecordset(strSQL, dbopendynaset)
> set data1.recordset = ds  <----
> this is where i get the run time error.

> can someone help me, plese??

> thank you,
> chong pil woo


You are probably trying to link databound control (text box?) to
Data1.Recordset, and in properties of that control you specified
non-existing field name. It may even exist in your original table but it
is obviously not returned by your SQL select. This usually happens when
you link controls from development environment and later on decide to
change SQL query or rename some fileds in the database.

Hope this helps (although you probably sorted it yourself by now).



Sat, 12 Jun 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Syntax for importing data into an Access table from an ODBC data source

2. Problems with data control in VB 4.0 and ODBC data sources

3. i get error when i set up ODBC data source (access) with crystal

4. Visual Basic 4.0a error with ORACLE Data source accessing BLOB data

5. Data Form Wizard and ODBC Data Source

6. Using ADO Data Control on User Control as Data Source

7. Create User Control as Data Source Using ADO Data Control

8. ODBC.ini - How can I get all ODBC Data Sources

9. Data Source Class to access Data Environment

10. Access virtually any data source : Report off in-memory application data

11. dbcombo and data combo control data/row source

12. Binding Data Control to remote data source.

 

 
Powered by phpBB® Forum Software