Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Concat String
Message
From
13/11/2001 16:41:25
 
 
To
13/11/2001 13:09:20
Casey Easterwood
L.A. Mechanical Solutions Inc.
Los Alamitos, California, United States
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00580991
Message ID:
00581156
Views:
23
>I am trying to make a dynamic query and am having a little trouble.
>
>How Can I make the following work.
>
>
> For x = 0 to fieldlc
> field(x) = FIELDRS("FIELDS")
> FIELDSRS.movenext
> Next
>
> For Y = 1 to loopcontrol
> UpdateQuery = "UPDATE" & TableName & " " &
> For X = 0 to fieldlc
> Set VFPRS.fields(field(x)) & "=" & field(x) &
> Next
> " " &
> "WHERE PRIMKEY=" & Y
> Response.Write UpdateQuery
> 'connSQL.execute(UpdateQuery)
> VFPRS.movenext
> Next

What is the UPDATE supposed to do?

As far as I can tell, you are saving the values in the "FIELDS" field and saving it to an array. The only probable flaw I see is the missing spaces after UPDATE and before WHERE. What do you get back in UpdateQuery?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform