Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6248655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:05:54+00:00 2026-05-24T13:05:54+00:00

Is there a way to load data (e.g. from XML) to a dataset –

  • 0

Is there a way to load data (e.g. from XML) to a dataset – a temporary memory table/recordset which can be linked (bound) to a form for a preview? I know that .NET has datasets, but how about Access 2007?

It is possible to fill a menu/list control with the data from a XML file, but it would not scale as well as a continuous form would.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T13:05:55+00:00Added an answer on May 24, 2026 at 1:05 pm

    Here is a solution based on this example: Create In-Memory ADO Recordsets
    – remember to add first a reference in Tools > References, find the latest Microsoft ActiveX Data Object

    Public Sub createDataSet(mekeNewSet As Boolean)
    'requires reference addedd **Microsoft ActiveX Data Object**
    
    Dim rs As ADODB.Recordset
    Dim fld As ADODB.Field
    
    Set rs = New ADODB.Recordset
    With rs
        .Fields.Append "EmployeeID", adInteger, , adFldKeyColumn
        .Fields.Append "FirstName", adVarChar, 10, adFldMayBeNull
        .Fields.Append "LastName", adVarChar, 20, adFldMayBeNull
        .Fields.Append "Email", adVarChar, 64, adFldMayBeNull
        .Fields.Append "Include", adInteger, , adFldMayBeNull
        .Fields.Append "Selected", adBoolean, , adFldMayBeNull
        .CursorType = adOpenKeyset
        .CursorLocation = adUseClient
        .LockType = adLockPessimistic
        .Open
    End With
    
    With rs
        .AddNew
        .Fields(0) = 777
        .Fields(1) = "John"
        .Fields(2) = "Smith"
        .Fields(3) = "john.smith@something.com"
        .Fields(4) = 1
        .Fields(5) = True
        .Update
    End With
    
    
    Set Me.Recordset = rs
    
    End Sub
    

    There is also a possibility to create a new Class in VBA and then build a Collection as in this tutorial: Using Custom Collections in Microsoft Access

    For the full solution how to download XML data and enter it into a recordser check here:
    Access VBA – how to download XML file and enter its data into a recordset

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a standard way to load, read and parse an XML file from
Is there a way to load a table view that opens at the second
I want to load data from an XML file and assign that data to
What I'm trying to find a way to do is load some data from
Is there any way to load a swf file and display it in a
Is there a way to load and run an EXE file on the client
Is there another way to load MSHTML documents without use Application.ProcessMessages? To load a
Is there a way to load external CSS files, like we load JS file
Is there a way to only load child nodes when the parent node is
Is there a way to make a python module load a dll in my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.