473,322 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

table name with spaces in RunSQL instruction

Hello all,

I use ACCESS 97.
I want to delete all records of a table "TABLE RESULT" , the name of
which includes spaces.
It seems to me that the correct syntax is as follows :

DoCmd.RunSQL "Delete * FROM 'TAB RESULT';"

Tne table name is enclosed with apostrophes.

I receive the following message : Syntax error in the request. The
request clause is not completed.

Could somebody give me the correct syntax.
Thanks in advance

Maurice

Nov 12 '05 #1
2 9296
Try square brackets [ ] instead of apostrophes.

--
Wayne Morgan
Microsoft Access MVP
"Maurice KRAIT" <mk****@club-internet.fr> wrote in message
news:3F***************@club-internet.fr...
Hello all,

I use ACCESS 97.
I want to delete all records of a table "TABLE RESULT" , the name of
which includes spaces.
It seems to me that the correct syntax is as follows :

DoCmd.RunSQL "Delete * FROM 'TAB RESULT';"

Tne table name is enclosed with apostrophes.

I receive the following message : Syntax error in the request. The
request clause is not completed.

Could somebody give me the correct syntax.
Thanks in advance

Maurice

Nov 12 '05 #2


Wayne Morgan a écrit :
Try square brackets [ ] instead of apostrophes.

--
Wayne Morgan
Microsoft Access MVP
OK, it works.
Thank you very much

Maurice


"Maurice KRAIT" <mk****@club-internet.fr> wrote in message
news:3F***************@club-internet.fr...
Hello all,

I use ACCESS 97.
I want to delete all records of a table "TABLE RESULT" , the name of
which includes spaces.
It seems to me that the correct syntax is as follows :

DoCmd.RunSQL "Delete * FROM 'TAB RESULT';"

Tne table name is enclosed with apostrophes.

I receive the following message : Syntax error in the request. The
request clause is not completed.

Could somebody give me the correct syntax.
Thanks in advance

Maurice


Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rolf Kemper | last post by:
Dear All, I need some help on an XLST. I need to create an XML output from some xml document by XSLT. The top element must contain multiple name spaces. I tried this as an example: ...
3
by: Oggdorf | last post by:
The table names in my database schema have spaces. When the .tab files are created in Visual Studio, the constraint names do not have brackets around them causing a syntax error. Is there a...
6
by: vbnetrookie | last post by:
I have a table name in SQL Server 2000 that has a space in it ex: aim international I had trouble just in the query analyzer with this..I had to place the name in brackets for it to work. But...
4
by: dixie | last post by:
I want to write a query where one of the two tables in it is variable and its name is picked up from a text box control on an open form. The query is very simple and is only a select query with...
2
by: Florifulgurator | last post by:
Hello, trying to clean up other´s mess... I´ve replaced some tables (previously linked to another Access DB) with renamed tables linked to a PostgeSQL DB (removed spaces and Ümlauts in names,...
3
by: Robert A. Boudra | last post by:
I'm working through one of the example data sets in the Visual Basic Resource Kit, and am having a problem with use of a table name that contains spaces. The section of code in the example that...
5
by: laurentc | last post by:
Dear all, I have several tables based on exactly the same fields (Key/Date/Price1/Price2). I do some statistics on the prices. However, as I have many different tables (the tables are...
11
by: kennthompson | last post by:
Trouble passing mysql table name in php. If I use an existing table name already defined everything works fine as the following script illustrates. <?php function fms_get_info() { $result =...
0
by: sudheerdb2 | last post by:
Hi, I am trying xml data processing using Xquery version 9.1 My xml file --------- <?xml version="1.0" ?> <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.