Writing form output to file

K

Ken

Hi ,

I need to be able to write results from a form picklist to a file. I know I
can append the output at the end of the file but is there a way to add the
output to a certain place in the file. i.e
Form output = PM.
Here is file sample that needs to be written to.
Session("dbFields") = "*"
Session("dbRs") = "Action"
Session("dbWhere") = "Category_Code=' This is where PM needs to be ' AND
Current_Status='Open'"
Session("dbGroupBy") = ""
Session("dbOrderBy") = "ID"

Thanks
Ken
 
A

Alan

I don't know what your code below has to do with a file but can you can
store a placeholder in your file/variable and use replace:

....
Session("dbWhere") = "Category_Code='@FORMVAR@' AND Current_Status='Open'"
....
Dim FormVar
FormVar = Request.Form("AmPm")
Session("dbWhere") = Replace (Session("dbWhere"), "@FORMVAR@", FormVar)
....

Give that a go.

Alan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top