Okay, I have a recordset that selects a name based on something else, say what city you live in for example. If you're in "PA" it will return PETE ROTH.
Good. Now that works, simple. Now say I want to insert "PETE ROTH" or rather, the recordset.field.item("FIRSTNAME").value portion of that and throw it into a session variable for use. How would I go about this?
I get the "Either BOF or EOF, or the recordset no longer exists" error when I try to put a record set into a session variable for use. Basically, What it's for is based on a previous pages answers it generates an email with your name, obviously it needs your email to send it to, and some other general information that tailors an email customized for you.
Thing is, it cant ASK you the email address on the previous page, it looks up your name in a data base and cross references some other stuff and gets your email address. Now i am ONE HUNDRED % POSITIVE its getting the email address correctly via response.write blah blah However I need my email scrip i wrote to be something like
Code: Select all
theEmailADdresTo = recordset1.field.item("yourEmail").value
But it throws a fit, how can I insert the email address from a recordset into my vbscript? It just throws up when i do it!
Sorry for another long one, these minor quirks are driving me nuts!