How to assign the data contained in a recordset in memory to a report?

Gosh, you're sharp! 🙄
 
I think most would agree the temp table would be the easiest. However, my first guess without knowing the details is do away with Access all together. Since you can pull your data in via vba from an external source then just do this in Word and use Word as your reporting source. Even if you need a disconnected recordset, which you may not you can still do that in word. This then gives you a lot of flexibility of reading the recordset and writing to Word. Unless you need complicated reporting features such as sorting and grouping. You can build and ADO recordset as needed, but you may be able to simply write to the document as data arrives.

These read and write to Access, but you could do away with Access
 
You have been told multiple times that your solution is not possible. You can keep arguing or you can consider an alternative.

If you are dealing with ONE record at a time, use the tempVars suggestion. If you are dealing with multiple records, make a temp table.
we are 49 posts into what is essentially a simple thread.
-Why doesn't this code work
-Recordsets are not supported
-various alternatives depending on how many records you are receiving at one time.

- so may be 10 posts because there are several solutions you can consider.

At some point, the experts will simply stop trying to help.

"...that your solution is not possible.." ???
I not have a solution

"...Why doesn't this code work.."
I have never written that the proposed code does not work

"..Recordsets are not supported.."
Ok, this is the correct anwer to my question

"..-various alternatives depending on how many records you are receiving at one time...."
I've never asked for an alternative way
 
Actually, not true. You, as thread starter, can close it, or a moderator can close it for you. Otherwise it stays open.
 
Per the request of the OP, re-opening this thread.
 
Can you also restore the missing posts, as not getting the full picture here? :(
 
Can you also restore the missing posts, as not getting the full picture here? :(

I have reviewed the posts and they are numbered consecutively. As a moderator, I would have the ability to see any post that was hidden, and none are hidden. I do not believe anything is missing unless a moderator performed a silent edit. I don't claim an eidetic memory here, but this thread is pretty much as I recall it.

The summary is, as far as I can tell:

The OP asked if an in-memory ADO recordset could be used as a .Recordsource for an Access report. The answer, from MS Online documentation, seems to be no, although at first a couple of people were unsure of that answer.

During the discussion, we learned that amorosik uses WinSock and a network "Data Arrived" event behind the scenes in a form. The event in question is not a form event but a network event that awakens the code behind the form that was waiting for data. Once that data has arrived and has been delivered, that appears to be the source of the data for the ADO in-memory recordset. This network discussion was actually a diversion that confused matters.

Questions arose regarding why a temporary table was not acceptable. The OP says it is not but no further detail was given. The use of a set of TempVars was mentioned. This offered solution also was not acceptable.

@Gasman, you now have it - in summary - to the best of my ability to summarize it.
 

Users who are viewing this thread

Back
Top Bottom