Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 19th, 2009, 10:30 AM
chiefwiggum chiefwiggum is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2009
Posts: 2 chiefwiggum User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 47 sec
Reputation Power: 0
HELP! i'm out of my depth... and sinking fast!

Hi All,

I recently decided to start playing with access, a friend at work was pretty good at programming so offered to help me out. unfortunatly before finishing my 1st (and foolishly quite large) project he decided to fly off to thailand with his girlfriend!

now my problem is i have built a tool for my work to track the current status of projects, i've got the form to pull the data from the database OnLoad, but when i click my update button i get a debug error.

(i hope i've use the right tags to wrap my code!)
Heres my Update command
Code:
UpdateProjectSQL = " UPDATE [projects] SET [UATID] = '" & uatproject & "', [PACode] = '" & PACode & "', [OnTrack] = '" & ontrack & "', [OneView] = '" & oneview & "', [Status] = '" & proj_status & _
"', [Rag] = '" & project_rag & "', [PM] = '" & projectmanger & "', [TPM] = '" & tech_proj_manager & "', [TM] = '" & test_mamanger & "', [UATTester] = '" & assign_res & "', [SuppRes] = '" & _
add_uat & "', [LaunchDate] = '" & launch & "', [ScriptTarget] = '" & script_date & "', [UATStart] = '" & uat_start & ", [UATDuration] = '" & uat_dur & _
"', [UATPercent] = '" & uat_complete & "', [PITStart] = '" & pit_start & "', [PITDuration] = '" & pit_dur & "', [PITPercent] = '" & pit_complete & "', [TestPlanApprove] = '" & _
tp_complete & "', [TestPlanApprove] = '" & test_plan_approve & "', [ScriptsComplete] = '" & scripts_complete & "', [ScriptsApprove] = '" & sign_off & "', [UATStartCh] = '" & uat_st_ch & _
"', [UATComplete] = '" & uat_complete_ch & "', [PITStartCh] = '" & pit_st_ch & "', [PITComplete] = '" & pit_comp_ch & "', [ExitReport] = '" & exit_report & "', [UATSignoff] = '" & _
uat_signoff & "', [TypeofTest] = '" & type_of_test & "', [AreaofBusiness] = '" & area_of_bus & "', [NewUpdate] = '" & new_update & "', [OldUpdate] = '" & prev_update & "'"


I've put a MsgBox after this SQL statement and from what i can see everything is being pickec up and a value is being pulled from every field in the query.

but i'm getting debug error
Code:
Run-Timer error'-2147217900 (80040e14)

Syntax error (missing operator) in query expression "is Null , [UATDuration]= 'is Null', [PITPercent]=' =100%',
[TestPlanComplete]= '= -1', [TestPlanApprove]= '= -1',
[ScriptsComplete]= 'isNull', [ScriptsApprove]',


Any advice or help would be much appriciated.

Thanks

Reply With Quote
  #2  
Old October 22nd, 2009, 07:34 AM
chiefwiggum chiefwiggum is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2009
Posts: 2 chiefwiggum User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 47 sec
Reputation Power: 0
anyone?

Reply With Quote
  #3  
Old October 29th, 2009, 10:30 AM
dykebert's Avatar
dykebert dykebert is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 408 dykebert User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 Days 20 h 27 m 28 sec
Reputation Power: 2
First, you are putting text values into all of your fields. This may or may not be correct, I cannot tell.

Now to you're real problem. You are missing a single Quote here: (I've bracketed it with asterisks so you can see it, but the asterisks should not be in the final version.)

"', [UATStart] = '" & uat_start & "*'*, [UATDuration] = '" & uat_dur & _

Have fun!
__________________
P.S. I am looking for work. <grin>.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > HELP! i'm out of my depth... and sinking fast!


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




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

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




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek