Article View: comp.lang.perl.misc
Article #64Another ODBC/SQL question
From: Yossi Konijn
Date: Thu, 24 Oct 1996 00:00
Date: Thu, 24 Oct 1996 00:00
38 lines
1825 bytes
1825 bytes
Hi all, Since last time this group was of great help, I'll try my luck again. I'm using ODBC.PL to connect to Access 7.0. I have no problems sending INSERTand SELECT SQL commands, but the update appears not to give the proper result. This is the command I'm sending: UPDATE ServiceRecords SET QueryID = '144', CustomerID='123456789012345', EmployeeID='YossiK', ServiceDate = '24/10/96', ServiceTime = 'ServiceTime', ProductVersion = '2.0', ServiceRecords.ProductName='Dagesh', ServiceRecords.Status='ON', ServiceRecords.AnswerDescription='goodbye', ServiceRecords.ProblemDescription='hello again?', ServiceRecords.Version='2.0' WHERE QueryID='144'; And the error message I'm receiving is: [Microsoft][ODBC Microsoft Access 7.0 Driver] Too few parameters. Expected 2 The only other relevent thing is that QueryID is an Access generated field that increments by 1 every time a new entry is entered. Any advice will be appreciated. If possible please use mail, the newsgroup server isn't that good. Oh, and while on the subject, does anyone know what escape sequence I should use to send a single-quote to a text field? I'm trying to type 'Can't' but the quotes are confusing Access. Thanks, Yossi
Technical Details
Message-ID:
<54nomb$j88@news.NetVision.net.il>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f6611,5d3951a8a6107760,start X-Google-Attributes: gidf6611,public X-Google-Thread: 10f591,5d3951a8a6107760,start X-Google-Attributes: gid10f591,public X-Google-Thread: fa0ae,5d3951a8a6107760,start X-Google-Attributes: gidfa0ae,public From: yossik@accentsoft.com (Yossi Konijn) Subject: Another ODBC/SQL question Date: 1996/10/24 Message-ID: <54nomb$j88@news.NetVision.net.il> X-Deja-AN: 191732371 organization: NetVision LTD. newsgroups: comp.lang.perl.misc,comp.lang.perl.modules,bit.databases.mssql-l