Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crystal Reports Without Database
Message
 
To
02/11/2001 13:04:22
Jason Dalio
Northern Interior Regional Health Board
Prince George, British Columbia, Canada
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00576488
Message ID:
00577100
Views:
18
Hi Jason,
Thank you very much . That is a very good solution. I will try it .

Regards,
Fred

>Yes, you can use ADO and create a local temporry recordset in memory and treat it exactly like a database recordset. These are called "dynamic recordsets". Basically create a recordset, append new fields to the recordset and then off you go. Insert your records and you have a dynamic recordset. Hopefully the example code gives you the gist of it.
>
>Code:
>
>Dim rsFileInfo as ADODB.Recordset
>
>Sub cmdLoadData_Click()
>
>Set rsFileInfo = New ADODB.Recordset
>
>rsFileInfo.Fields.Append "ID", adInteger
>rsFileInfo.Fields.Append "FileName, adBSTR, 255
>
>rsFileInfo.Open
>
>rsFileInfo.AddNew
>rsFileInfo!ID = 1
>rsFileInfo!FileName = "tempfile.dat"
>rsFileInfo.Update
>
>End Sub
Fred Besterwitch, MCP

The harder you work. The luckier you get.
Previous
Reply
Map
View

Click here to load this message in the networking platform