Avatar billede Jørgen Kirkegaard Professor
27. februar 2014 - 17:12 Der er 17 kommentarer og
1 løsning

Access på hjemmeside med input- og output-filer på pc?

Jeg har lavet et program i Access, som giver (eksporterer til) en output-fil, givet to input-filer og evt. lidt indtastning på skærmen, f.eks. filnavne. Alle filer skal ligge på brugerens pc. Programmet skal køre på min hjemmeside, hvor brugeren først skal logge ind. Kan Access klare dette? Jeg ved ikke, hvor jeg skal starte og slutte. Spørg evt.
Avatar billede terry Ekspert
27. februar 2014 - 19:47 #1
I don't think you will be able to run any code in your Access program if it is on your homepage, you will need to do the code using for example ASP

You can use the Access dB as a database if your homepage supports Access databases.

Your homepage will be able to browse to files on users PC's

I actually think your question will be more relevant in another category now
Avatar billede terry Ekspert
27. februar 2014 - 19:51 #2
Just thinking, maybe Office (access) 365 maybe be able to do this but I have no experience with that :-(
Avatar billede Jørgen Kirkegaard Professor
27. februar 2014 - 20:00 #3
Æv. Nu har jeg lige lavet et fantastisk simpelt program, som virker på min pc. Så var jeg sikker på, at jeg kunne "udgive den" på en eller anden måde. Udover at linke inputfilerne til tabeller og eksportere en ny fil er der kun ganske simpel sql-kode og en lille smule if-then-else. Opgaven svarer lidt til at linke to csv-filer, lave en eller anden join og så eksportere som en ny fil. Det må da kunne lade sig gøre.
Avatar billede terry Ekspert
27. februar 2014 - 20:46 #4
you can execute access queries but I'm sure you can't execute code...


Why isn't it possible for users to have their own Access dB?
If its because they don't have a license then distribute an Access runtime which doesn't require a license
java script: void(0);
Avatar billede terry Ekspert
27. februar 2014 - 20:48 #5
Not sure where java script: void(0); came from!

http://www.microsoft.com/en-us/download/details.aspx?id=10910
Avatar billede Jørgen Kirkegaard Professor
27. februar 2014 - 20:57 #6
Brugerne sidder i et andet system (ikke Access) og skal bare lige hente nogle filer, som først skal gennem min mølle på hjemmesiden. Koden skal ligge hos mig.
Avatar billede terry Ekspert
28. februar 2014 - 15:32 #7
hard to say what's the best solution without a better understanding of the full requirement
Avatar billede Jørgen Kirkegaard Professor
28. februar 2014 - 15:49 #8
Terry, here goes:

1. Start the Access database, "MySmartAppl.accdb", predefined linked to 2 existing files: "x:\MySmart1.csv" and "x:\MySmart2.csv".
(Autoexec):
2. Export "MySmartSqlStatement" to "x:\mysmartoutput.txt"
3. End Access.
4. Smile

This is p.o.c. on pc, but I want it to Work, purely on my homesite www.Smartiam.xx.

How to? Can't Access run on a webpage and handle this?
Avatar billede Jørgen Kirkegaard Professor
28. februar 2014 - 15:51 #9
Well, you already answered this ("I don't think you will be able to run any code in your Access program if it is on your homepage, you will need to do the code using for example ASP")
Avatar billede terry Ekspert
28. februar 2014 - 17:47 #10
Can't Access run on a webpage and handle this?  > NO

But I still don't think your giving enough information for me to make suggestions.

If it must run on your http://www.smartiam.xx.

then I think you should use Access only as the database where you have your tables. Then the code which inserts data from csv files into tables is in the web pages. Also the code can extract the data to export with a query in the dB.
Avatar billede Jørgen Kirkegaard Professor
28. februar 2014 - 17:52 #11
"the code": ASP? VB?
Avatar billede Jørgen Kirkegaard Professor
28. februar 2014 - 17:56 #12
The job is to merge two csv-files on the user's pc, and then deliver a third one after doing som SQL gymnastics. How would you do this? With Access..
Avatar billede Jørgen Kirkegaard Professor
28. februar 2014 - 17:57 #13
Sorry. *merge..on = read..from
Avatar billede terry Ekspert
28. februar 2014 - 18:15 #14
the code": ASP? VB? = That's up to you :-)


The job is to merge two csv-files on the user's pc, and then deliver a third one after doing som SQL gymnastics. How would you do this? With Access..


I thought you had decided it was to run on your homepage!

Skrevet tor. d. 27. februar 2014 kl. 20:57:32| #6  you wrote
Brugerne sidder i et andet system (ikke Access)

Should this have been included with your explanation ? :-)

I'm getting bit sand pieces here and there and its not easy to draw a picture of your requirement.

WHY can ita ll by doe with Access on the users PC?
Avatar billede Jørgen Kirkegaard Professor
28. februar 2014 - 18:24 #15
Well, thinking it all over: I don't want them to have my code :-) I want to run it "by myself" (i.e on the my homepage). The idea was, that they somehow(!) should deliver the files to my program, and then they would get a file in return. I guess, I must reconsider...
Avatar billede terry Ekspert
28. februar 2014 - 19:13 #16
I must reconsider > YES :-)
Avatar billede Jørgen Kirkegaard Professor
02. marts 2014 - 14:17 #17
Terry: nice to discuss the matter with you....thnx.
Avatar billede terry Ekspert
02. marts 2014 - 14:38 #18
your welcome, hope you found/find a solution

Enjoy the rest of the W/E
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
Dyk ned i databasernes verden på et af vores praksisnære Access-kurser

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