I created a table table1 with fields ID, Fruit, Location, and Qty
I created a DSN in my IIS webserver and called it "Fruits"
and here's the code. Copy it to your webserver and save it as .ASP
.and I attached the resulting browse view
This application does not restrict you for adding Locations or fruits, I made it somewhat universal.

I hope this will keep your trust with DBForums
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<script language="VBScript">
<%
Const adOpenStatic = 3
Const adLockOptimistic = 3
Const adComdText = 1
dim Fruit, TotalFruit, Location, TotalLocation
dim Qty()
dim LocationName()
dim FruitName()
Fruit= 0
Location = 0
set SR = Server.CreateObject("ADODB.Recordset")
SR.Open "Select Distinct Fruit From Table1 order by Fruit", "DSN=Fruits", adOpenStatic, adLockOptimistic, adCmdText
' Count Number Of FruitName
Do while Not SR.eof
TotalFruit = TotalFruit + 1
Redim Preserve FruitName(TotalFruit)
FruitName(TotalFruit) = SR("Fruit")
SR.movenext
Loop
SR.Close
' Count Number Of TotalLocation
SR.Open "Select Distinct Location From Table1 order by Location", "DSN=Fruits", adOpenStatic, adLockOptimistic, adCmdText
Do while Not SR.eof
TotalLocation = TotalLocation + 1
Redim Preserve LocationName(TotalLocation)
LocationName(TotalLocation) = SR("Location")
SR.movenext
Loop
SR.Close
Redim Preserve Qty(TotalFruit,TotalLocation)
' Establish Qty numbers
For x = 1 to TotalFruit
For y = 1 to TotalLocation
Qty(x,y) = "0"
next
next
SR.Open "Select * From Table1 order by Fruit, Location", "DSN=Fruits", adOpenStatic, adLockOptimistic, adCmdText
do while NOT SR.EOF
For x = 1 to TotalFruit
For y = 1 to TotalLocation
if FruitName(x) = SR("Fruit") and LocationName(y) = SR("Location") then
Qty(x,y) = SR("Qty")
end if
next
next
SR.MoveNext
Loop
SR.Close
%>
</script>
<HTML>
<HEAD>
<TITLE>Untitled</TITLE>
</HEAD>
<BODY>
<table cellspacing="2" cellpadding="2">
<tr>
<td> Description</td>
<% for y = 1 to TotalLocation %>
<td><%= LocationName(y) %></td>
<% Next %>
</tr>
<% for x = 1 to TotalFruit %>
<tr>
<td><%= FruitName(x) %></td><% for y = 1 to TotalLocation %>
<td><%= Qty(x,y) %></td><% next %>
<% next %>
</table>
</BODY>
</HTML>