Not sure if this is possible, but worth a try.
I have a report that i am printing. The report has a recordsource of qryVP which filters so that only the selcted records are printed.
This works okay, but i am wanting to extract the contents from field adDesc (in the query) if paddID from the report = pandID in the query. There may be more than one record in the query with the same pandID which i would put into a textbox - each adDesc on a new line.
I hope this makes sense.
Can anyone assist with ideas?
Edit: Here's what i have so far - creating a new query and getting the required data. But how do i get the result to show as required in a textbox?
thanks
George
I have a report that i am printing. The report has a recordsource of qryVP which filters so that only the selcted records are printed.
This works okay, but i am wanting to extract the contents from field adDesc (in the query) if paddID from the report = pandID in the query. There may be more than one record in the query with the same pandID which i would put into a textbox - each adDesc on a new line.
I hope this makes sense.
Can anyone assist with ideas?
Edit: Here's what i have so far - creating a new query and getting the required data. But how do i get the result to show as required in a textbox?
Code:
Set db = CurrentDb
strSQL = "SELECT adDesc FROM qryVP Where pandID=" & Me.paddID
Set qry = db.CreateQueryDef("qryVP2", strSQL)
Set rst = qry.OpenRecordset()
Me.txtGJ = rst
db.QueryDefs.Delete ("qryVP2")
thanks
George
Last edited: