SunQuest
           MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old April 19th, 2004, 10:22 AM
lindsay lindsay is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 1 lindsay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Access SQL Update Error: "No value given for one or more required parameters."

Hello,
From a C# program, using OleDb, I can do an insert into an Access db with no problem. But then when I go to update a row I've inserted I get this error:
"No value given for one or more required parameters."

Here are my insert and update statements:

"Insert Into Appt ( ApptID, ApptDate, StartTime, EndTime, CustID, CustName, EmpID, EmpName, Location, ApptNotes, Estimate) Values ( 'f5ce3d7a-be4b-4cfa-985b-a76e667b0982',#4/27/2004 12:00:00 AM#, 12, 14, '60000-1081872920', 'Lindsay:Test Job 1', '650000-1042121023', 'Duncan Fisher', \"\", \"\", 0)"

"Update Appt Set ApptID = 'f5ce3d7a-be4b-4cfa-985b-a76e667b0982', ApptDate = #4/27/2004 12:00:00 AM#, StartTime = 12, EndTime = 13, CustID = '60000-1081872920', CustName = 'Lindsay:Test Job 1', EmpID = '650000-1042121023', EmpName = 'Duncan Fisher', Location = \"\", AppNotes = \"\", Estimate = 0 Where ApptID = 'f5ce3d7a-be4b-4cfa-985b-a76e667b0982'"


And my Table:
Appt:

ApptID Text
AppDate Date/Time
StartTime Number
EndTime Number
CustID Text
CustName Text
EmpID Text
EmpName Text
Location Text
ApptNotes Text
Estimate Yes/No
DeviceID Text
DeviceApptID Text

The only required field is ApptID, and all of the Text fields (besides ApptID) allow zero length.

Any ideas/suggestions?

Thanks,
Lindsay

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > Access SQL Update Error: "No value given for one or more required parameters."


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway