Im trying to get results using the INNER JOIN in SQL below – but it just errors all the time – code ( as you can see dreamweaver produced the code) – Im a beginner
<%
Dim mem_detail
Dim mem_detail_numRows
Set mem_detail = Server.CreateObject("ADODB.Recordset"
mem_detail.ActiveConnection = MM_accountinfo_STRING
mem_detail.Source = "SELECT * FROM memorial INNER JOIN reflection On memorial.memID = reflection.refID WHERE memID = " + Replace(mem_detail__MMColParam, "'", "''"
+ ""
mem_detail.CursorType = 0
mem_detail.CursorLocation = 2
mem_detail.LockType = 1
mem_detail.Open()
mem_detail_numRows = 0
%>
The table ‘ memorial’ has records in it but ‘reflection’ has no records in it yet and I think this produces the error below – Is it a BOF EOF problem ? Can any body help - cheers
Error Type:
ADODB.Field (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
<%
Dim mem_detail
Dim mem_detail_numRows
Set mem_detail = Server.CreateObject("ADODB.Recordset"
mem_detail.ActiveConnection = MM_accountinfo_STRING
mem_detail.Source = "SELECT * FROM memorial INNER JOIN reflection On memorial.memID = reflection.refID WHERE memID = " + Replace(mem_detail__MMColParam, "'", "''"
mem_detail.CursorType = 0
mem_detail.CursorLocation = 2
mem_detail.LockType = 1
mem_detail.Open()
mem_detail_numRows = 0
%>
The table ‘ memorial’ has records in it but ‘reflection’ has no records in it yet and I think this produces the error below – Is it a BOF EOF problem ? Can any body help - cheers
Error Type:
ADODB.Field (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.