Avatar billede flekz Nybegynder
10. juli 2002 - 21:43 Der er 6 kommentarer

*.csv

Jeg har en komma separeret fil:
"1","hej","hej igen","osv"
Og den skulle jeg gerne have "Konverteret" til en access database eller lign. igennem Visual Basic, det er VB.NET jeg bruger, er der nogen der kan hjælpe?
Avatar billede terry Ekspert
10. juli 2002 - 21:58 #1
why dont you use Access to import the file
Avatar billede terry Ekspert
10. juli 2002 - 22:00 #2
You can also make a macro in access and then use automation to start Access and run the macro!
This requires Access on the PC.
Avatar billede flekz Nybegynder
10. juli 2002 - 22:05 #3
There is no Access on the PC, and I really have to do it in VB :()
Avatar billede terry Ekspert
10. juli 2002 - 22:08 #4
This is an example of automating Access

Sub CommandButton1_Click()
' This procedure is a brief sample showing
' how to automate Access
Dim appAccess as object

  ' Get a reference to the Access Application object.
  Set appAccess = CreateObject("Access.Application")
 
  ' Open the Northwind database.
  ' Modify the path as needed.
  appAccess.OpenCurrentDatabase "nwind.mdb"

  ' Run a macro
  appAccess.DoCmd.RunMacro "Print Sales"

  ' Display the application.
  appAccess.Visible = TRUE


  ' Close the database.
  appAccess.CloseCurrentDatabase

  ' Quit Access.
  appAccess.Quit

  ' Close the object variable.
  Set appAccess = Nothing

End Sub
Avatar billede kedde65 Praktikant
10. juli 2002 - 22:09 #5
Har du en access database i forvejen? Eller skal du via VB lave en helt ny??
Avatar billede flekz Nybegynder
11. juli 2002 - 02:25 #6
Jeg har en i forvejen
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester

IT-JOB