Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get String from recordset field

Status
Not open for further replies.

patricktwo

Programmer
Jul 6, 2002
10
0
0
US
We are upgrading our system to server2003 and have to change the method used for email.
We get a recordset from a database as follows:

toEmail = recordset("email")

When we try to send mail with this it errors out. It seems that a field object is being moved to the toEmail variable.

I have tried:
toEmail = recordset("email").value

This causes the same error.

Any ideas, help
 
...or

RecordSet.Fields("email").Value

- Apologies in advance, stupid question: You ARE using something like
rs("Email")
and NOT the reserved word RecordSet, arn't you...:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top