Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

viewing saved access queries in asp

Status
Not open for further replies.

bikebanditcom

Programmer
Jun 11, 2003
117
US
hello guys and gals,

im not quite sure what i need to do here, i have the following databse set up


and what im trying to do is view data on an asp page, before getting to the page to view the material order report, you first come to a selection page, where you select one of the three, or all three, i'm not sure if this is possible, if its not then all three can be chosen ever time, no worries, however the first drop down is for region, the second is for supplier, and third is for a date range. i can set up a table that displays info based on one search term or form input, but i dont know how to do the date range, or make it based on all three. so anyhow, the report is to show any parts attached to any packages that are attached to any sales that have the VOO field in tblSales, the VOO is the deciding factor on whether or not the part can be pulled from inventory or ordered, the page comes out to the following: three html tables,
one for the "rough in parts", next for the "trim" parts, and the next for the "service call" parts. in all three i total the cost of the parts but line, then at the bottom of the page i total the cost of all the parts. so if this were in access, no problem, i could set up the query in a zip, but what i thought i'd be able to do is access a query like i could a table in my code, but im not sure how to do that, could anyone tell me or help me out with any of this? i'm not quite sure what to search for in the FAQ's , and i've tried just finding the FAQ's to browse thru, but i must be dumb because i cant find that section of the site. thanks for your help. below are my pages. thanks

dan

SELECTION PAGE

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<link href=&quot;css/style.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;>
</head>

<body>
<h1><strong>Material Order Report </strong></h1>
<p><font size=&quot;2&quot;>Today is <%= Now %></font></p>
<p> <font size=&quot;2&quot;>Region</font> </p>
<form name=&quot;matOrderReport &quot; method=&quot;post&quot; action=&quot;materialReport.asp&quot;>
<p>
<select name=&quot;Region&quot;>
<option value=&quot;&quot;>Select One</option>
</select>
</p>
<p><font size=&quot;2&quot;>Supplier </font></p>
<p>
<select name=&quot;supplier&quot;>
<option value=&quot;&quot;>Select One</option>
</select>
</p>
<p><font size=&quot;2&quot;>Schedule Date</font></p>
<p>
<input name=&quot;date1&quot; type=&quot;text&quot; size=&quot;8&quot;>
<font size=&quot;2&quot;>To</font>
<input name=&quot;date2&quot; type=&quot;text&quot; size=&quot;8&quot;>
</p>
<p><font size=&quot;2&quot;>
<input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;View Materials To Order&quot;>
</font> </p>
</form>
<p>&nbsp;</p>
<p><A href=&quot;default.asp&quot;><font size=&quot;2&quot;>Home</font></A><font size=&quot;2&quot;> | <A href=&quot;login.asp&quot;>Login</A>
| <A href=&quot;salesEntry.asp&quot;>Sales Entry</A> | <A href=&quot;salesEdit.asp&quot;>Sales Editing</A>
| <A href=&quot;scheduling.asp&quot;>Scheduling</A> | <A href=&quot;register.asp&quot;>Register
A New User</A> | <A href=&quot;dbControlPanel.asp&quot;>DB Control Panel</A> | <a href=&quot;<%= MM_Logout %>&quot;>Logout</a></font></p>
<p><font size=&quot;1&quot;>Copyright 2003 PBC Technologies Designed By <a href=&quot;mailto:dhayden@wecantlose.com&quot;>Dan
Hayden, Jr</a><br>
<a href=&quot; Can't Lose, LLC</a></font> </p>
<p>&nbsp;</p>
</body>
</html>




REPORT PAGE
<%@LANGUAGE=&quot;VBSCRIPT&quot; CODEPAGE=&quot;1252&quot;%>
<html>
<head>
<title>Material Order Report</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<link href=&quot;css/style.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;>
</head>

<body>
<h1><strong>Material Order Report</strong></h1>
<p><font size=&quot;2&quot;>Today is <%= Now %></font></p>
<p><font size=&quot;2&quot;>Rough In</font></p>
<form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;#&quot;>
<table width=&quot;407&quot; border=&quot;1&quot; align=&quot;left&quot; cellpadding=&quot;4&quot; cellspacing=&quot;4&quot;>
<!--DWLayoutTable-->
<tr>
<td width=&quot;89&quot; height=&quot;28&quot; valign=&quot;top&quot;><font size=&quot;2&quot;>Part Number</font></td>
<td width=&quot;71&quot; valign=&quot;top&quot;><font size=&quot;2&quot;>Part Desc</font></td>
<td width=&quot;29&quot; valign=&quot;top&quot;><font size=&quot;2&quot;>Unit</font></td>
<td width=&quot;53&quot; valign=&quot;top&quot;><font size=&quot;2&quot;>Unit Cost</font></td>
<td width=&quot;89&quot; valign=&quot;top&quot;><font size=&quot;2&quot;>Total Cost</font></td>
</tr>
<tr>
<td height=&quot;34&quot; valign=&quot;top&quot;><!--DWLayoutEmptyCell-->&nbsp;</td>
<td valign=&quot;top&quot;><!--DWLayoutEmptyCell-->&nbsp;</td>
<td valign=&quot;top&quot;><!--DWLayoutEmptyCell-->&nbsp;</td>
<td valign=&quot;top&quot;><!--DWLayoutEmptyCell-->&nbsp;</td>
<td valign=&quot;top&quot;><!--DWLayoutEmptyCell-->&nbsp;</td>
</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><font size=&quot;2&quot;>Trim </font></p>
<table width=&quot;407&quot; height=&quot;70&quot; border=&quot;1&quot; align=&quot;left&quot; cellpadding=&quot;4&quot; cellspacing=&quot;4&quot;>
<!--DWLayoutTable-->
<tr>
<td width=&quot;90&quot; height=&quot;28&quot; valign=&quot;top&quot;><font size=&quot;2&quot;>Part Number</font></td>
<td width=&quot;70&quot; valign=&quot;top&quot;><font size=&quot;2&quot;>Part Desc</font></td>
<td width=&quot;32&quot; valign=&quot;top&quot;><font size=&quot;2&quot;>Unit</font></td>
<td width=&quot;55&quot; valign=&quot;top&quot;><font size=&quot;2&quot;>Unit Cost</font></td>
<td width=&quot;84&quot; valign=&quot;top&quot;><font size=&quot;2&quot;>Total Cost</font></td>
</tr>
<tr>
<td height=&quot;28&quot; valign=&quot;top&quot;><!--DWLayoutEmptyCell-->&nbsp;</td>
<td valign=&quot;top&quot;>&nbsp;</td>
<td valign=&quot;top&quot;>&nbsp;</td>
<td valign=&quot;top&quot;><!--DWLayoutEmptyCell-->&nbsp;</td>
<td valign=&quot;top&quot;>&nbsp;</td>
</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><font size=&quot;2&quot;>Service Call</font></p>
<p>
<table width=&quot;407&quot; border=&quot;1&quot; align=&quot;left&quot; cellpadding=&quot;4&quot; cellspacing=&quot;4&quot;>
<!--DWLayoutTable-->
<tr>
<td width=&quot;90&quot; height=&quot;28&quot; valign=&quot;top&quot;><font size=&quot;2&quot;>Part Number</font></td>
<td width=&quot;70&quot; valign=&quot;top&quot;><font size=&quot;2&quot;>Part Desc</font></td>
<td width=&quot;32&quot; valign=&quot;top&quot;><font size=&quot;2&quot;>Unit</font></td>
<td width=&quot;55&quot; valign=&quot;top&quot;><font size=&quot;2&quot;>Unit Cost</font></td>
<td width=&quot;84&quot; valign=&quot;top&quot;><font size=&quot;2&quot;>Total Cost</font></td>
</tr>
<tr>
<td height=&quot;28&quot; valign=&quot;top&quot;><!--DWLayoutEmptyCell-->&nbsp;</td>
<td valign=&quot;top&quot;>&nbsp;</td>
<td valign=&quot;top&quot;>&nbsp;</td>
<td valign=&quot;top&quot;><!--DWLayoutEmptyCell-->&nbsp;</td>
<td valign=&quot;top&quot;>&nbsp;</td>
</tr>
</table>
 
<p></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><font size=&quot;2&quot;>Total Part Cost For This Supplier : </font></p>
<p><font size=&quot;2&quot;>Total Cost For All Parts:</font></p>
<p>&nbsp;</p>
</form>
<form name=&quot;form2&quot; method=&quot;post&quot; action=&quot;xlReports/xlMaterialReport.asp&quot;>
<p><font size=&quot;2&quot;>
<input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;Save Excel Spreadsheet&quot;>
</font></p>
<p>&nbsp;</p>
</form>
<p><font size=&quot;2&quot;> </font> </p>
<p>&nbsp;</p>
<p><A href=&quot;default.asp&quot;><font size=&quot;2&quot;>Home</font></A><font size=&quot;2&quot;> | <A href=&quot;login.asp&quot;>Login</A>
| <A href=&quot;salesEntry.asp&quot;>Sales Entry</A> | <A href=&quot;salesEdit.asp&quot;>Sales Editing</A>
| <A href=&quot;scheduling.asp&quot;>Scheduling</A> | <A href=&quot;register.asp&quot;>Register
A New User</A> | <A href=&quot;dbControlPanel.asp&quot;>DB Control Panel</A> | <a href=&quot;<%= MM_Logout %>&quot;>Logout</a></font></p>
<p><font size=&quot;1&quot;>Copyright 2003 PBC Technologies Designed By <a href=&quot;mailto:dhayden@wecantlose.com&quot;>Dan
Hayden, Jr</a><br>
<a href=&quot; Can't Lose, LLC</a></font> </p>
<p>&nbsp;</p>
</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top