質問編集履歴
2
追記.コード全体
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,6 +38,8 @@
|
|
38
38
|
|
39
39
|
|
40
40
|
|
41
|
+
|
42
|
+
|
41
43
|
以下このエラーになるまでに試したことを記載します。
|
42
44
|
|
43
45
|
```エラー文
|
@@ -101,3 +103,195 @@
|
|
101
103
|
|
102
104
|
|
103
105
|
以上を行い、問題のエラー文になりました。
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
追記.コード全体
|
112
|
+
|
113
|
+
```ASP
|
114
|
+
|
115
|
+
<%@Language="VBScript" %>
|
116
|
+
|
117
|
+
<html>
|
118
|
+
|
119
|
+
<head>
|
120
|
+
|
121
|
+
</head>
|
122
|
+
|
123
|
+
<body bgcolor="ffffff">
|
124
|
+
|
125
|
+
<BR><center>
|
126
|
+
|
127
|
+
<BR>
|
128
|
+
|
129
|
+
<P align="center">
|
130
|
+
|
131
|
+
<FONT size="+1" face="MS ゴシック" color="#666666"><B>「全体について」投稿ページ</B></FONT>
|
132
|
+
|
133
|
+
</P>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
<table width="95%" cellspacing="10">
|
138
|
+
|
139
|
+
<%
|
140
|
+
|
141
|
+
Sub disp(ByVal rss)
|
142
|
+
|
143
|
+
Do While Not rss.EOF
|
144
|
+
|
145
|
+
Response.Write "<tr><td bgcolor='#FFF7F7'>"
|
146
|
+
|
147
|
+
Response.Write "<div style='text-indent:" & rss("level")*20 & "px'>"
|
148
|
+
|
149
|
+
If rss("title")="削除済" Then
|
150
|
+
|
151
|
+
Response.Write rss("id") & ":<span style='color:#FF99AA'>削除済</span> "
|
152
|
+
|
153
|
+
Response.Write "(" & FormatDateTime(rss("sdat"),0) & ") "
|
154
|
+
|
155
|
+
Else
|
156
|
+
|
157
|
+
Response.Write " ┗ "&rss("id") & ":<a href='q&a_003.asp?id=" & rss("id") & "'>"
|
158
|
+
|
159
|
+
Response.Write rss("title") & "</a> "
|
160
|
+
|
161
|
+
Response.Write rss("nam") & "(" & FormatDateTime(rss("sdat"),0) & ") "
|
162
|
+
|
163
|
+
If rss("flg") < 4 then
|
164
|
+
|
165
|
+
Response.Write " <img src='イラスト.gif'> "
|
166
|
+
|
167
|
+
End If
|
168
|
+
|
169
|
+
End If
|
170
|
+
|
171
|
+
Response.Write "</div></td></tr>"
|
172
|
+
|
173
|
+
SQL_S="SELECT * FROM Q-表示 Where parent=" & rss("id") & " ORDER BY sdat ASC"
|
174
|
+
|
175
|
+
Set rs_s=db.Execute(SQL_S)
|
176
|
+
|
177
|
+
If rs_s.EOF=False Then Call disp(rs_s)
|
178
|
+
|
179
|
+
rss.MoveNext
|
180
|
+
|
181
|
+
Loop
|
182
|
+
|
183
|
+
End Sub
|
184
|
+
|
185
|
+
If Request.QueryString("cnt")="" Then
|
186
|
+
|
187
|
+
cnt=1
|
188
|
+
|
189
|
+
page=1
|
190
|
+
|
191
|
+
Else
|
192
|
+
|
193
|
+
cnt=CInt(Request.QueryString("cnt"))
|
194
|
+
|
195
|
+
tmpCnt=cnt-15
|
196
|
+
|
197
|
+
page=CInt(Request.QueryString("page"))
|
198
|
+
|
199
|
+
End If
|
200
|
+
|
201
|
+
Set db=Server.CreateObject("ADODB.Connection")
|
202
|
+
|
203
|
+
Set rs=Server.CreateObject("ADODB.Recordset")
|
204
|
+
|
205
|
+
db.Provider="Microsoft.ACE.OLEDB.12.0"
|
206
|
+
|
207
|
+
db.Mode=3
|
208
|
+
|
209
|
+
db.ConnectionString=Server.MapPath("master.mdb")
|
210
|
+
|
211
|
+
db.Open
|
212
|
+
|
213
|
+
rs.Open "SELECT * FROM Q-表示 WHERE parent=0 ORDER BY sdat DESC",db,3,2
|
214
|
+
|
215
|
+
rs.AbsolutePosition=cnt 'エラーの出た部分
|
216
|
+
|
217
|
+
Do While Not rs.EOF
|
218
|
+
|
219
|
+
Response.Write "<tr><td bgcolor='#F5FFFF'>"
|
220
|
+
|
221
|
+
If rs("title")="削除済" Then
|
222
|
+
|
223
|
+
Response.Write rs("id") & ":<span style='color:#FF99AA'>削除済</span> "
|
224
|
+
|
225
|
+
Response.Write "(" & FormatDateTime(rs("sdat"),0) & ") "
|
226
|
+
|
227
|
+
Else
|
228
|
+
|
229
|
+
Response.Write rs("id") & ":<a href='q&a_003.asp?id=" & rs("id") & "'>"
|
230
|
+
|
231
|
+
Response.Write rs("title") & "</a> "
|
232
|
+
|
233
|
+
Response.Write rs("nam") & "(" & FormatDateTime(rs("sdat"),0) & ") "
|
234
|
+
|
235
|
+
If rs("flg") < 4 then
|
236
|
+
|
237
|
+
Response.Write " <img src='イラスト.gif'> "
|
238
|
+
|
239
|
+
End If
|
240
|
+
|
241
|
+
End If
|
242
|
+
|
243
|
+
Response.Write "</td></tr>"
|
244
|
+
|
245
|
+
SQL1="SELECT * FROM Q-表示 Where parent=" & rs("id") & " ORDER BY sdat ASC"
|
246
|
+
|
247
|
+
Set rs1=db.Execute(SQL1)
|
248
|
+
|
249
|
+
If rs1.EOF=False Then Call disp(rs1)
|
250
|
+
|
251
|
+
rs.MoveNext
|
252
|
+
|
253
|
+
cnt=cnt+1
|
254
|
+
|
255
|
+
If cnt=page*15+1 Then Exit Do
|
256
|
+
|
257
|
+
Loop
|
258
|
+
|
259
|
+
Response.Write "</table>"
|
260
|
+
|
261
|
+
Response.Write "<div align='center'>"
|
262
|
+
|
263
|
+
If page>1 Then
|
264
|
+
|
265
|
+
Response.Write "<a href='q&a_001.asp?cnt=" & tmpCnt & "&page=" & page-1
|
266
|
+
|
267
|
+
Response.Write "'><img src='next.gif' alt='前ページへ' border='0' /></a> "
|
268
|
+
|
269
|
+
End If
|
270
|
+
|
271
|
+
Response.Write " <a href='q&a_002.asp'><img src='note.gif' width='40' height='40'"
|
272
|
+
|
273
|
+
Response.Write " alt='新規作成' border='0'/></a> "
|
274
|
+
|
275
|
+
If Not rs.EOF Then
|
276
|
+
|
277
|
+
Response.Write " <a href='q&a_001.asp?cnt=" & cnt & "&page=" & page+1
|
278
|
+
|
279
|
+
Response.Write "'><img src='prev.gif' alt='次ページへ' border='0' /></a>"
|
280
|
+
|
281
|
+
End If
|
282
|
+
|
283
|
+
Response.Write "</div>"
|
284
|
+
|
285
|
+
%>
|
286
|
+
|
287
|
+
<BR>
|
288
|
+
|
289
|
+
<BR>
|
290
|
+
|
291
|
+
</body>
|
292
|
+
|
293
|
+
</html>
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
```
|
1
追記情報
test
CHANGED
File without changes
|
test
CHANGED
@@ -29,6 +29,12 @@
|
|
29
29
|
|
30
30
|
|
31
31
|
記述以外に必要な情報があれば追記します。よろしくお願いします。
|
32
|
+
|
33
|
+
> 追記情報.
|
34
|
+
|
35
|
+
新サーバーにAccessは入っていません。
|
36
|
+
|
37
|
+
旧サーバーのAccessはMicrosoft(R) Access 97です。
|
32
38
|
|
33
39
|
|
34
40
|
|