25. november 2005 - 22:12Der er
6 kommentarer og 1 løsning
Save all imported filenames
I'm importing text files to tables in my db. In one table I want to save all the files names. The import is done from the form Import. This form has a field named Path. I know how to select only the name of the field from the path. The table Importerat has the fields Nbr, Filename, and Date. The field Nbr is a count field and the field Date should store the date the file was imported = Now(). How can I make this work?
I dette særtema om aspekter af AI ser vi på skiftet fra sprogmodeller til AI-agenter, og hvordan virksomheder kan navigere i spændet mellem teknologisk hastighed og behovet for menneskelig kontrol.
First of - "date" is a reserved word in access and shouldn't be used for field names. Use for example mydate, importdate etc instead. "Path" may be as well. Reserved words can be found in the help file.
If you have a button on your form "Import" that you click to perform the import - then add the following the button's click_event:
Jag ær svensk. Nær jag anvænder ditt exempel ser det ut som føljer: CurrentDb.Execute "INSERT INTO Importerat (Filename,Importdate) VALUES ('" & Mid(Me.Sokvag, 1, 16) & "'," & Now() & "),dbFailOnError" Något stæmmer inte eftersom jag får felmeddelande från koden.
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.