Avatar billede claus.lund Nybegynder
02. oktober 2003 - 14:07 Der er 4 kommentarer og
1 løsning

Find person ID og indsæt data

Tidtagning til motionsløb:

løber er registreret med ID (stregkode)i tabel

løbers sluttid NU() registreres når stregkode aflæses ved mål

Opgave: find løber i tabel og registrer sluttid
        beregn løbstid=starttid-sluttid.

Jeg er ny i dette forum og håber jeg opfører mig rigtigt
Avatar billede terry Ekspert
02. oktober 2003 - 15:52 #1
SQL for updateing sluttid is>

"UPDATE YourTable SET Sluttid = Now() WHERE ID = " & ThisIsAvariableWithID


NOTE>to calculate the time taken is no problem, the problem is how it gets displayed! Normally you would not have the løbstid in th edB as this can always be calculated.
Avatar billede claus.lund Nybegynder
03. oktober 2003 - 14:29 #2
Hi Terry
I´m afraid it´s not enough.
WHERE ID = " & ThisIsAvariableWithID
"ThisIsAvariableWithID" should be the barcode number just entered by barcodereader, so how do I define this in the sql statement
Avatar billede terry Ekspert
03. oktober 2003 - 16:59 #3
I have NO IDEA as to how your barcode program works but ThisIsAvariableWithID is a variable and its up to you to get what ever you read in with your barcoder program into a variable. Then you can use

Docmd.runsql "UPDATE YourTable SET Sluttid = Now() WHERE ID = " & ThisIsAvariableWithID
Avatar billede claus.lund Nybegynder
09. oktober 2003 - 09:48 #4
I did´nt respond because I did´nt understand and could´nt get any further. I´ll accept your answers so you get "paid"
Avatar billede terry Ekspert
09. oktober 2003 - 12:39 #5
Thanks Claus!
I dont know that you dont undertsand UNLESS you respond and tell me that you dont.
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