|
evansforsyth -> RE: Wrapping columns of database results (9/13/2003 22:45:01)
|
Well, got this far . . . I'm sure someone with a bit of ASP knowledge will see the problem right away--unfortunately that someone is not me! Here is the code: ----------------------------- <% Const COLUMN_COUNT = 4 ' or 2 or 4 or ... column = 0 ' initialize counter Do While Not fp_rs.EOF ' put in <TR> at beginning of group: If column = 0 Then Response.Write "<TR>" Response.Write "<TD>" & _ FP_FieldVal(fp_rs,"MN") & "</TD>" column = column + 1 If column = COLUMN_COUNT Then Response.Write "</TR>" & vbNewLine column = 0 ' start over! End If fp_rs.MoveNext ' this seems to be where the problem is! Loop ' clean up last row, if needed! If column <> 0 Then For c = column To COLUMN_COUNT Response.Write "<TD></TD>" Next Response.Write "</TR>" & vbNewLine End If %> ------------------------ Here is the problem: After working very well, and showing the data appropriately, this error message shows up: "Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. " Sure appreciate the help!
|
|
|
|