Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Syntax error (missing operator) in query
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Syntax error (missing operator) in query

 Post Reply Post Reply
Author
t4p67b96 View Drop Down
Newbie
Newbie


Joined: 10 May 2005
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote t4p67b96 Quote  Post ReplyReply Direct Link To This Post Topic: Syntax error (missing operator) in query
    Posted: 10 May 2005 at 10:36am
I have an asp page that I just want to add 3 other input forms.  Those 3 forms go into an access database. This page I just want to display the totals.  I declared all variables, and I CALL THOSE UP LATER IN TABLE CELLS IN ACCORDANCE WITH THE OTHER 3 ASP FORMS. Anyway I get this message.

Syntax error (missing operator) in query expression '* dcprov'.

/plants/planttotal.asp, line 33

Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Provider = "Microsoft.Jet.OLEDB.4.0"
Conn.ConnectionString = "Data Source=" & "\\test\test_data\plants\dcprov.mdb"
Conn.Open
Set rst = Server.CreateObject("ADODB.Recordset")
rst.Open "Select * dcprov", Conn, 1, 1

 
What exactly is it looking for? I'm am fairly new to all of this asp.
 
Thanks in advance to any response.
 
Confused
t4p67b96
 
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2005 at 10:40am
is the table called dcprov

if so the query (Select * dcprov)

should be

Select dcprov.* FROM dcprov
Back to Top
t4p67b96 View Drop Down
Newbie
Newbie


Joined: 10 May 2005
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote t4p67b96 Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2005 at 11:24am
Thank you very much.  That worked.
 
t4p67b96
Smile
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.