I am tasked with creating a website using VBA and userforms. We have to create a
ID: 3765606 • Letter: I
Question
I am tasked with creating a website using VBA and userforms. We have to create a "Products" page that then takes the product and the quantity of the product and puts it onto another userform with a list box. I am not sure how you would press the "Add to Cart" button in one userform and then get it to put that information onto a list box.
Lets say that they add "3" "Samsung" "Televisions" to their cart. They are each priced at "$1000"
Products TV Brand About Product Customer Reviews e Enter Quantity Add to Cart Continue Shopping ue Shopping Check Out Main MenuExplanation / Answer
@Code
Dim db = Database.Open("ele")
Dim query = "SELECT * FROM Products"
End Code
<html>
<body>
<h1>ele Products</h1>
<table border="1" width="100%">
<tr>
<th>Id</th>
<th>Products</th>
<th>Description</th>
<th>Price</th>
</tr>
@Code
Dim row
for each row in db.Query(query)
End Code
<tr>
<td>@row.Id</td>
<td>@row.Name</td>
<td>@row.Description</td>
<td align="right">@row.Price</td>
</tr>
@Code next End Code
</table>
</body>
</html>
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.