Advertisement

06.06.2008 at 03:07AM PDT, ID: 23463159
[x]
Attachment Details

SQL - update not working

Asked by peterdarazs in SQL Query Syntax

Hi Experts

This update routine runs very nicely with line 1, 3, 4 but as soon as i add line 2 , it doesn't save either RL_Uplimit or RL_LowLimit at all. As a relative newby I can't figure out why. In testing , they both save correctly when used independantly in line 1.

Many thanks

Peter
Start Free Trial
1:
2:
3:
4:
SQL = "UPDATE RESULT_LIMITS_ARCHIVES set [RL_LowerLimit] = '" & Trim$(RLLowLimit.Text) & "'" _
        & " and [RL_UpperLimit] = '" & Trim$(RLUpLimit.Text) & "'" _
        & " WHERE RL_PracID = " & RLPractice.ListIndex & " and RL_DoctorID=" & RLDoctors.ListIndex _
        & " and RL_RulesetID=" & RLRuleSet.ListIndex & " and RL_ProfileID=" & RLPatientProfile.ListIndex
[+][-]06.06.2008 at 03:40AM PDT, ID: 21727717

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: SQL Query Syntax
Sign Up Now!
Solution Provided By: TimCottee
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06.06.2008 at 03:44AM PDT, ID: 21727736

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628