Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / January 2008

Tip: Looking for answers? Try searching our database.

Problem in Insert query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
navin - 12 Jan 2008 14:02 GMT
Hi,

Please let me know what's wrong with the below, its giving error in
the last where the value is "True". Error is "Syntax Error in Insert
Into Statement"

INSERT INTO tblPOTracker (transDate, buyerName, businessGroup,
buyerReq, NoOfLines, reqCreatedDate, requestorName, buyerPO,
poSupplier, requestStatus, reqReceivedTime, reqClosedTime,
poTATLapsed, poTAT, poTATMissComments, poRemarks, poConfirmed,
confirmMode, approvalStatus, poPlaced) VALUES ('1/12/2008', 'Navin' ,
'HPS', 1234,3, '1/12/2008', 'navi', '34545', 'save test',
'Standard','1/12/2008 7:16:36 PM', '1/12/2008 7:16:14 PM', '-24:00',
'', '', '', '', '', 'Pending', True

Thanks,
Navin
MikeR - 12 Jan 2008 15:18 GMT
> Hi,
>
[quoted text clipped - 13 lines]
> Thanks,
> Navin
Two things:
You have 20 fields, but only 19 values
No closing parenthesis
HTH
Mike
Steve Schapel - 13 Jan 2008 06:37 GMT
... and a third thing: dates should be delimited with #s instead of ''s.

Signature

Steve Schapel, Microsoft Access MVP

> Two things:
> You have 20 fields, but only 19 values
> No closing parenthesis
> HTH
> Mike
MikeR - 13 Jan 2008 12:53 GMT
> ... and a third thing: dates should be delimited with #s instead of ''s.

Nice catch!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.