Solved

Syntax Error in FROM Clause

Posted on 2001-06-22
3
375 Views
Last Modified: 2012-08-13
syntax error in from clause.

i am using adodc control and OLE DB provider is: Microsoft Jet 4.0
then i give data base name. Test Connection Successed.
in record source : command-type: adcmdtable. and i select the table from that database.


then on the form, in text-box
datasource property: adodc1
datafield property: table of that selected database.

this is the way of how bound programming is done using adodc.

but when i click on datafield proprty i get error that says: SYNTAX ERROR IN FROM CLAUSE.


how to overcome from this problem?

i have exported as well as imported table to and from another database.
but problem remains the same.

if i export only one table that it's work fine but when i export any another table problem stated above arises.

i tried out copy and paste method.
means in fresh database i have copied all the records from those tables but that does not solve the problem.

if you can help me please help me out.

i used unbound programming(coding) but problem was not solved.
0
Comment
Question by:anandmehta
3 Comments
 
LVL 28

Expert Comment

by:AzraSound
ID: 6219313
please update your other open questions before continuing here.  failure to maintain your questions is grounds for account termination at this site.
0
 
LVL 3

Expert Comment

by:TheAnswerMan
ID: 6219436
You have to Select a Table in the Recordsource property of your datacountrol.

or enter a sQL statement.

THEN you can pick the datafield.
0
 
LVL 43

Accepted Solution

by:
TimCottee earned 50 total points
ID: 6223786
If the table name has a space in it such as the "Title Author" table in the biblio.mdb sample supplied with VB you need to first select it from the list as normal and then click in the edit area of the combo box and surround the name of the table in [] so that you end up with [Title Author] (or whatever your table name is) in the box. You can then continue and the problem should go away.

I see that you have closed out most of your open questions, however this one http://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20132664 remains open though the comment supplied by emoreau should be sufficient to solve this problem.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now