Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Syntax Error in FROM Clause

Posted on 2001-06-22
3
Medium Priority
?
492 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 150 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

824 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