Just nu i M3-nätverket
Jump to content

SQL problemaz


narkoz

Recommended Posts

Har problem(hjärnblödning) om hur jag ska få

in variabeln Alt i databasens fält 1,2,3...8

Nu blir det..

Bara, Dåligt, Sämst , , , , ,

Bara, Dåligt, Sämst , , , , ,

Bara, Dåligt, Sämst , , , , ,

ivarje fält...suck jag suger.

 

rsNewQuo.AddNew

 

rsNewQuo("question") = strQuo

rsNewQuo("Type") = strType

rsNewQuo("Comment") = Comment

rsNewQuo("CommentCompuls") = CommentCompulsory

rsNewQuo("NoOpinion") = NoOpinion

rsNewQuo("1") = Request.Form("Alt")

rsNewQuo("2") = Request.Form("Alt")

rsNewQuo("3") = Request.Form("Alt")

rsNewQuo("4") = Request.Form("Alt")

rsNewQuo("5") = Request.Form("Alt")

rsNewQuo("6") = Request.Form("Alt")

rsNewQuo("7") = Request.Form("Alt")

rsNewQuo("8") = Request.Form("Alt")

 

rsNewQuo.Update

 

Dessa eller denna var. vill jag ha in

--------------------------------------

Alt: Bara

 

Alt: Dåligt

 

Alt: Sämst

 

Alt:

 

Alt:

 

Alt:

 

Alt:

 

Alt:

 

 

///

narkoz

 

Link to comment
Share on other sites

[ alferOne ]

Prova detta, bygger på att det alltid finns 8 alternativ i Request.Form("Alt")...

 

rsNewQuo.AddNew

 

rsNewQuo("question") = strQuo

rsNewQuo("Type") = strType

rsNewQuo("Comment") = Comment

rsNewQuo("CommentCompuls") = CommentCompulsory

rsNewQuo("NoOpinion") = NoOpinion

''Delar upp strängen och spara ner i olika fält

alt = Split(Request.Form("Alt"),",")

 

rsNewQuo("1") = alt(0)

rsNewQuo("2") = alt(1)

rsNewQuo("3") = alt(2)

rsNewQuo("4") = alt(3)

rsNewQuo("5") = alt(4)

rsNewQuo("6") = alt(5)

rsNewQuo("7") = alt(6)

rsNewQuo("8") = alt(7)

 

rsNewQuo.Update

 

.::] a1 [::..........................

Det inte jag kan kan ni andra...

.::]2003[::..........................

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...