473,473 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Syntax error (missing operator)

10 New Member
Here is the error message I am getting along with the code:

Error Type:
Microsoft JET Database Engine (0x80040E14)
Syntax error (missing operator) in query expression 'IDFrm = 38 AND IDSpec ='.

Dim rsResults
Dim rsResults_numRows

Set rsResults = Server.CreateObject("ADODB.Recordset")
rsResults.ActiveConnection = MM_mis_STRING
rsResults.Source = "SELECT IDFrm, f107DateSubmitted, f107DateCompleteBy, f107FY, f107Status, IDspec, SpecText, f107POCIDfk, f107POCID, f107POCFName, f107POCLName, f107AircraftIDfk, AircraftID, AircraftSerialNo, f107MajorWorkArea, IDMajorWorkArea, Text, f107MajorSys, f107JCN, f107WUC, f107TechReq, f107DiscBy, f107ResLoc, f107RecRep, f107DesLoc, f107DrpIn, f107BluStrk FROM dbo_tblForm107, dbo_tblf107POC, dbo_tblAircraft, dbo_tblSpecsList, dbo_tblf107grpMajorWorkArea WHERE IDFrm = "& (rsIdentity.Fields.Item("LastIdent").Value) &" AND f107POCID = f107POCIDfk AND AircraftID = f107AircraftIDfk AND IDSpec = f107Status AND IDMajorWorkArea = f107MajorWorkArea"

Any help would be much appreciated.

Thanks!
Aug 25 '06 #1
3 2235
BigGuy316
10 New Member
I posted the wrong coding in my earlier post.. Here is the correct code which the error is occuring with:

Dim rsDiscByResults
Dim rsDiscByResults_numRows

Set rsDiscByResults = Server.CreateObject("ADODB.Recordset")
rsDiscByResults.ActiveConnection = MM_mis_STRING
rsDiscByResults.Source = "SELECT IDFrm, f107DiscBy, IDSpec, SpecText FROM

dbo_tblForm107, dbo_tblSpecsList WHERE IDFrm = " &

(rsIdentity.Fields.Item("LastIdent").Value) & " AND IDSpec = f107MajorSys "
rsDiscByResults.CursorType = 0
rsDiscByResults.CursorLocation = 2
rsDiscByResults.LockType = 1
rsDiscByResults.Open()
Aug 25 '06 #2
lakshmanmcaj
35 New Member
hi,

try to use aliace name for two table that's problem may be try it
Aug 26 '06 #3
BigGuy316
10 New Member
Thanks.. It is working now.
Aug 28 '06 #4

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

Similar topics

29
by: shank | last post by:
1) I'm getting this error: Syntax error (missing operator) in query expression on the below statement. Can I get some advice. 2) I searched ASPFAQ and came up blank. Where can find the "rules"...
4
by: dcarson | last post by:
I've read about this error in several other discussions, but still can't seem to pinpoint the problem with my code. Everything seemed to be working fine for some time, but it now tends to bomb out...
1
by: Alan Murrell | last post by:
Hello, One of our web hosting clients is getting the following error when someone tried to log in form their login page: --- ODBC ERROR --- Microsoft OLE DB Provider for ODBC Drivers error...
3
by: kufre | last post by:
I need some fresh eyes to take a look at this code for me and let me know what it is I'm doing wrong because I keep getting all kinds of error message with this code. I've had several people help...
4
by: khan | last post by:
getting, error, 3075 Syntax Error (Missing Operator) in query expression '8WHERE .=1' Dim TotalQty As Integer TotalQty = DLookup("", "", "=" & Forms!!)
24
by: deko | last post by:
I'm trying to log error messages and sometimes (no telling when or where) the message contains a string with double quotes. Is there a way get the query to insert the string with the double...
7
by: John Øllgård Jensen | last post by:
Hi Using MS Asccess 2000: In a query I'm trying to create a new field with following expression: FilmDate: Left(,4) The field "FilmNo" is another text field in the query. This is...
3
by: access baby | last post by:
I hava a date parameter filter query but it shows error Syntax error missing operator in query experssion can some one please help where am i going wrong in expression SELECT copyorderdtl * ...
4
by: thebarefootnation | last post by:
Hi I have the following error message "Syntax Error (missing operator) in query expression" occurring when I am trying to update combo box within a form. My code is: Dim strSQL As String
3
by: willo | last post by:
Greetings all, I have run into a small problem with my understanding of some C++ language syntax, and seek some clarification. Below is a condensed version of some code I'm having difficulty...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
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
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,...
1
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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
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
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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...

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.