Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Record display question
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Record display question

 Post Reply Post Reply
Author
haxor2 View Drop Down
Newbie
Newbie


Joined: 16 April 2006
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote haxor2 Quote  Post ReplyReply Direct Link To This Post Topic: Record display question
    Posted: 19 September 2006 at 10:44pm
I am trying to write a page that displays the results of two seperate tables and the fields are listed individually for fromating reasons.  The code i used is below.  However, I keep getting a type mismatch response.write on certain fields in the db.  I have tried many things to figure out what the problem is.  I even have two fields that are defined identical in the database.  Date/time and all the same options however, one displays and one does not.  Any suggestions would be help.  Sorry for the length of the post and thanks in advance
\
\
\
<%
Set ra=Request.Form("RmaN")
Set db=Server.CreateObject("ADODB.Connection")
db.Provider="Microsoft.Jet.OLEDB.4.0"
db.Open "C:/Inetpub/wwwroot/web/posts.mdb"

set rs=Server.CreateObject("ADODB.recordset")
sql="select rmalog.*,rmaprocessing.* from rmalog, rmaprocessing where rmalog.rmanumber5=rmaprocessing.rmanumber2"
rs.Open sql,db
%>
<table border="0" width="10">
<%
'Autonumbered
%>
<%
 rs.movefirst
 do while not rs.eof
%>
<tr>
<td>
 <%=rs("key")%>
</td>
<td>
<%
'number
%>
 <%=rs("dateissued2")%>
</td>
<td>
<%
'number
%>
 <%=rs("customernumber3")%>
</td>
<td>
<%
'Text
%>
 <%=rs("customername4")%>
</td>
</tr> 
<%
 rs.movenext
 loop
%>
<%
 rs.close
 db.close
%>
</table>
</body>
 
Back to Top
haxor2 View Drop Down
Newbie
Newbie


Joined: 16 April 2006
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote haxor2 Quote  Post ReplyReply Direct Link To This Post Posted: 20 September 2006 at 3:13pm
Nevermind, looks like it was a database issue.  I exported all ther records to and excel spreadsheet and reimported to access and now it works fine.  Probably something about switching data types in the database after data has been entered into the field.  I am not sure if this is the case but export/import seems to have fixed the problem so far.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.