Hello all. Here's my problem:
How can I use the following code in a continuous form? The result of this query gives me 288 records but when I use this as-is in my continuous form, I only get one record...the last one.
dim db as DAO.Database
dim rs as DAO.Recordset
dim strSQL as string
strSQL = "SELECT * FROM (tblProducts INNER JOIN tblDetail ON
tblProducts.ProdID = tblDetail.ProdID)"
set db = CurrentDB()
set rs = db.OpenRecordset (strSQL, dbOpenDynaset)
do until rs.EOF
txtProduct.Value = rs!Product
txtPrice.Value = rs!cost
txtRating.Value = rs!Rating
rs.MoveNext
loop
set db = nothing
set rs = nothing
Thank you for any help you can throw my way!
How can I use the following code in a continuous form? The result of this query gives me 288 records but when I use this as-is in my continuous form, I only get one record...the last one.
dim db as DAO.Database
dim rs as DAO.Recordset
dim strSQL as string
strSQL = "SELECT * FROM (tblProducts INNER JOIN tblDetail ON
tblProducts.ProdID = tblDetail.ProdID)"
set db = CurrentDB()
set rs = db.OpenRecordset (strSQL, dbOpenDynaset)
do until rs.EOF
txtProduct.Value = rs!Product
txtPrice.Value = rs!cost
txtRating.Value = rs!Rating
rs.MoveNext
loop
set db = nothing
set rs = nothing
Thank you for any help you can throw my way!