473,503 Members | 3,744 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.stateID='.

/fiq2/Admin/admin_update.asp, line 11

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

Set dbConn = server.CreateObject("adodb.connection")
'connect to database via DSN
dbConn.open("fitquest100")
Set rs_details = dbConn.Execute ("SELECT * FROM tbl_gym INNER JOIN tbl_state ON tbl_state.stateID=tbl_gym.state WHERE tbl_state.stateID=" & Request.QueryString("stateID"))
%>


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

Set rs_details = dbConn.Execute ("SELECT * FROM tbl_gym INNER JOIN tbl_state ON tbl_state.stateID=tbl_gym.state WHERE tbl_state.stateID=" & Cint(Request.QueryString("stateID")))

hei
Sep 20 '06 #2

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

Similar topics

6
2867
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...
4
1222
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....
4
4602
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...
3
1300
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...
1
9584
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...
22
2468
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...
4
2201
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...
1
2492
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...
5
2576
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...
0
7064
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...
0
7261
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,...
0
7315
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...
1
6974
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...
0
7445
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4991
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...
0
3158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1492
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.