Binding Data Control to remote data source. 
Author Message
 Binding Data Control to remote data source.

Why when I try to connect a data control in VB to a remote data source table using:

  ctlDB.Connect = "ODBC;DSN=QEDSName ;SRVR=mts;UID=qa;PWD=password;DATABASE=QA;"
  ctlDB.ReadOnly = False
  ctlDB.RecordSource = "customer"
  ctlDB.Refresh

I get the message:
Couldn't find input table or query 'customer'.

I have checked all the obvious possibilites, could this be a vb bug ?

Dave



Sun, 25 May 1997 05:11:34 GMT  
 Binding Data Control to remote data source.

Quote:

>Why when I try to connect a data control in VB to a remote data source table using:
>  ctlDB.Connect = "ODBC;DSN=QEDSName ;SRVR=mts;UID=qa;PWD=password;DATABASE=QA;"
>  ctlDB.ReadOnly = False
>  ctlDB.RecordSource = "customer"
>  ctlDB.Refresh
>I get the message:
>Couldn't find input table or query 'customer'.

I have the exact same problem (see my post ODBC and Data controls). I wonder
if this only happens with Data Controls. Anyway, if you set the option to 64
(SQL_PASSTHROUGH), this might work but this is not the solution you want
because SQL_PASSTHROUGH automatically makes the data control read-only and you
can't do things like FIND, EDIT, UPDATE.

Please post any answers you get. I'll do the same with mine.



Sun, 25 May 1997 18:38:12 GMT  
 Binding Data Control to remote data source.

writes:

Quote:
>Why when I try to connect a data control in VB to a remote data source table

using:

Quote:
>  ctlDB.Connect = "ODBC;DSN=QEDSName
>  ctlDB.ReadOnly = False
>  ctlDB.RecordSource = "customer">>  ctlDB.Refresh
>I get the message:
>Couldn't find input table or query 'customer'.

This is a follow-up to my earlier reply. I think I may have discovered the
problem. In our case, a public synonym defined for the underlying table was
causing the problem. Note that the error "Couldn't find input table or query
..." is a different error message from "Table or view does not exist". The
latter error can be invoked if you intentionally mispell the table name. This
is correct because the table does not exist. However, in the "couldn't find
input table..." error, the table *does* exist but ownership or reference to
it is kind of vague, thus it couldn't be found.

Our problem was corrected by removing the public synonym defined for the
underlying table.

Hope this helps.



Sun, 25 May 1997 23:09:19 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Connecting Bound Control to Remote Data Source Table

2. Data-bound Masked Edit makes all data-bound controls not display data

3. Assigning Null Values to data bound fields using remote data control

4. Creating a control class that can be a data binding data source

5. Data-Bound Vs. Non-Data-Bound Controls

6. Data-Bound Vs. Non-Data-Bound Controls

7. Data-Bound Vs. Non-Data-Bound Controls

8. Problem in Updating FlexGrid Bound to Remote Data Control

9. Data Control vs Remote Data Control (for Axx95 and VB4/32 Enterprise)

10. data control and remote data control

11. data control and remote data control

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

 

 
Powered by phpBB® Forum Software