473,568 Members | 2,964 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PLEASE help me! Very simple issue w/ ASP/database/SQL

1 New Member
I can't figure it out and I know is a simple issue, please help me!

The message error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'tbl_state.stat eID='.

/fiq2/Admin/admin_update.as p, line 11

The code:
<%@LANGUAGE="VB SCRIPT"%>
<%
'Create connection object
Dim dbConn
Dim rs_state
Dim rs_details

Set dbConn = server.CreateOb ject("adodb.con nection")
'connect to database via DSN
dbConn.open("fi tquest100")
Set rs_details = dbConn.Execute ("SELECT * FROM tbl_gym INNER JOIN tbl_state ON tbl_state.state ID=tbl_gym.stat e WHERE tbl_state.state ID=" & Request.QuerySt ring("stateID") )
%>


Thanks guys,
Will
Sep 19 '06 #1
1 1342
heiho
6 New Member
perhaps try this:

Set rs_details = dbConn.Execute ("SELECT * FROM tbl_gym INNER JOIN tbl_state ON tbl_state.state ID=tbl_gym.stat e WHERE tbl_state.state ID=" & Cint(Request.Qu eryString("stat eID")))

hei
Sep 20 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
2874
by: Agnes | last post by:
I got a ASP program in the server, it runs properly . However, As I run the web siste , click 'login' button. It return the following errors. It seems can't connect the database, I had stopped the IIS and run it again, (it still didn't work) , I use visual foxpro to check the database, everything is fine. Please help ~~ Technical...
4
1223
by: Brian Mink | last post by:
I am having trouble getting one database to export data that another one can import. The problem is a dash "-". I have a group of numbers entered in my database that have a dash in them (e.g. "AB1-234567") but the database that I am sending the data to cannot accept those dashes and needs the input set accordingly (e.g. "AB1234567"). Is there...
4
4606
by: jon f kaminsky | last post by:
Hi- I've seen this problem discussed a jillion times but I cannot seem to implement any advice that makes it work. I am porting a large project from VB6 to .NET. The issue is using the combo box bound to a table as a lookup, drawing values from another table to populate the available selections. This all worked fine in VB6. I have...
3
1304
by: Edwin Knoppert | last post by:
For near future specifications to place our ASP.NET software on a server not being ours i have to ask you a few rather simple questions. It's for professional use. We would not like to intervene with the installation that much, a simple copy to folder should be enough. Eventually we point the admin to change a few (minor) settings in the...
1
9606
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the...
22
2478
by: rasiel | last post by:
I'm hoping someone can help me out. I'm a researcher in need of developing an automated database and would like to see if someone here is willing to consider putting together for me a simple website. I'm not expecting a freebie of course, I'll pay if you're interested. This is the outline of the project: This would be a website that pulls...
4
2206
by: Brad Isaacs | last post by:
I am working with ASP.NET 2.0 and using an SQL Server 2000 database. I am using Visual Studio 2005 and developing on my Local machine. I am working with Login controls ASP.Configuration, I wanted to move my work and needed to place it on the server. Using VS 2005 , went to BUILD -Publish Web Site Checked the box for :: Alow this...
1
2503
by: Abdulla Herzallah | last post by:
Hi everyone I don't know if I am posting this to the right newsgroup but it is the closest I found, in case you think you can advice me to another newsgroup please feel free to do so. I am so desperate to get my problem solved. The issue is related to sockets and networking this is my problem short version: I need to connect to an...
5
2579
by: 0xception | last post by:
Hi, I'm attempting to create a perl script that will modify a series of RRD databases (a couple hundred of them). in order to do this the RRD database can be exported to XML modified and then restored from XML. My issue is when using XML::Simple to read in and edit the xml structure and then output it back out the section of XML that was ...
0
7604
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7916
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8117
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7660
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6275
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5498
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
932
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.