I have to write an ASP page that has connection to 1 database and then queries two tables one which has the header detail in and then the second which has the order lines in, each table has a ORDER_NUMNER.
These Tables contain a sales orders which I need to print out into an HTML page any help on this would be great as ASP is not my main language.
In general:
Instantiate and open your database connection: (see http://www.connectionstrings.com for more information)
Open a recordset for the master table and detail table:
Exit out of there are not records
Print header info (for fields order_date, order_number, and order_company:
Loop through records, reading all records from detail table: (for fields item_desc, item_qty, item_cost)
Close the recordset
Close the connection