|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
CDONTS error - Object required: ''
I typed the CDONTS code (see code below) but I got
this error page after I submitted the button "Microsoft VBScript runtime error '800a01a8' Object required: '" This caused a problem when I put the dynamic variable e.g. (rsphotos.Fields.Item("photos_name").Value) code. Can you help? <% 'CDO Email If Request.Form("Submit")<>"" Then Dim objCDO Dim textbody,phototitle Set objCDO = Server.CreateObject("CDONTS.NewMail") textbody = "<html><head></head><body>" &_ "You have recieved a new photo requested<br><br>" &_ "Name : " & request.form("req_fullname") & "<br>" &_ "Phone : " & request.form("req_phone") & "<br>" &_ "Email : " & request.form("req_email") & "<br>" &_ "Intended use : " & request.form("req_use") & "<br><br>" &_ "Photo title : " & (rsphotos.Fields.Item("photos_name").Value) & "<br>" &_ "Available : " & (rsphotos.Fields.Item("photos_available").Value) & "<br>" &_ "Format : " & (rsphotos.Fields.Item("photos_format").Value) & "<br>" &_ "Type of subject : " & (rsphotos.Fields.Item("photos_type").Value) & "<br>" &_ "Part of a group? : " & (rsphotos.Fields.Item("photos_no_in_group").Value) & "<br>" &_ "</body></html>" %> |
|
#2
|
|||
|
|||
|
what is rsphotos set to? i don't see any initialization code for it. therefore it would not point to an object.
__________________
Programmer's Corner |
|
#3
|
|||
|
|||
|
U have not create rsphotos object!Plz create this object before using it!
|
|
#4
|
|||
|
|||
|
Hi .. I got it work! ... I just moved the recordset to the top of the codes and it works!
cheers! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > CDONTS error - Object required: '' |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|