Solved

MESSAGE error near where

Posted on 2014-11-17
2
51 Views
Last Modified: 2014-12-22
I can not for the life of me see an error in this sql statement

insertprinterm = "insert into printer_maintanence (photoconductor, cartridge_yellow, cartridge_cyan, cartridge_magenta, cartridge_black, maintanence_kit, transfer_belt, wastebox, duplexer)  values(" & photo & "," & yellow & "," & cyan & "," & magenta & "," & black & "," & maint & "," & transfer & "," & waste & "," & duplexor & ")  where whatip = '" & thisip & "' AND whatdate = '" & thisdate & "'  "

thanks
gary
0
Comment
Question by:javagair
2 Comments
 
LVL 22

Expert Comment

by:p_davis
ID: 40447856
you have the '" on either side of your where statement but not for each parameter.
0
 
LVL 14

Accepted Solution

by:
CtrlAltDl earned 500 total points
ID: 40448097
"maintanence" is misspelled, but if it is also misspelled in the database then that isn't the problem.

Unless your values are all integers they should also be enclosed in single quotes.
 values('" & photo & "'
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question