Condividi:        

[Access] Esiste la 'Query Web' come su excel

Vuoi potenziare i tuoi documenti Word? Non sai come si fa una macro in Excel? Devi creare una presentazione in PowerPoint?
Oppure sei passato a OpenOffice e non sei sicuro di come lavorare al meglio?

Moderatori: Anthony47, Flash30005

[Access] Esiste la 'Query Web' come su excel

Postdi mafo » 11/07/06 13:18

....il titolo è parlante!

Vista la grande mole di dati che devo gestire, mi piacerebbe utilizzare Access al posto di Excel per pescare tabelle dal Web.

si può fare?

grazie anticipatamente per la cortese attenzione e pazienza....................
mafo
Utente Junior
 
Post: 26
Iscritto il: 09/05/06 14:18

Sponsor
 

Postdi archimede » 12/07/06 08:49

Io non l'ho mai fatto; alcuni suggerimenti:

1) Se Excel funziona, importare da Excel ad Access credo sia la cosa più semplice
2) Puoi esplorare l'opzione File / Carica Dati Esterni / Import (che prevede anche il formato HTML)
3) Verifica se il sito in questione offre i dati che ti interessano sotto forma di download di file in formato importabile in Access
4) Il seguente codice l'ho trovato sul web e non ho idea se funziona e se fa quello che vuoi:
Codice: Seleziona tutto
Sub LinkHTML()
    Dim dbs As Database
    Dim tdfHTML As TableDef
    Dim rstSales As Recordset

    ' Open the Microsoft Access database.
    Set dbs = CurrentDb

    ' Create a TableDef object.
    Set tdfHTML = dbs.CreateTableDef("CategoriesHTMLTable")

    ' Set the connection string to specify the source database type and
    ' the full path to the file that contains the table you want to link.
    tdfHTML.Connect = "HTML Import;" _
       & "DATABASE=http://home/someVirtualDirectory/categories.html"
                  'http://www.federalreserve.gov/releases/h15/update/"

    ' Set the SourceTableName property to the name of the table you want to access.
    tdfHTML.SourceTableName = "Categories"

    ' Append the TableDef object to the TableDefs collection to create a link.
    dbs.TableDefs.Append tdfHTML
End Sub
HTH.

Alessandro
archimede
Moderatore
 
Post: 2851
Iscritto il: 07/11/02 12:41
Località: Genova


Torna a Applicazioni Office Windows


Topic correlati a "[Access] Esiste la 'Query Web' come su excel":


Chi c’è in linea

Visitano il forum: Nessuno e 105 ospiti