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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Asp, Access, multi insert 2

Status
Not open for further replies.

tran008

Technical User
May 14, 2003
110
US
hi all,

I need to insert multi row from a text box which contain multi email address separate by comma field. Anyone have example any where?

thanks
 
If you are using VBScript with your ASP then you can use the Split() function to create an array from a string.

Something like this:
MyArray = Split(Request.Form("PutTheNameOfYourTextBoxHere")

Then you can just do a For/Next loop through the array elements and insert them one at a time.
 
doesn't Split() require a delimiter to split on? like ";" or "," or something similar?

i.e.

Code:
MyArray = Split(request.form("textboxname"),",")
 
Yes it does...

but tran008 said the values are "separate by comma"
 
Oh, duh

Now I see what you meant.

Yeah, I forgot the second argument to the Split() function!

/blush
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top