Avatar billede salimbharuchi Nybegynder
07. juli 2008 - 16:56 Der er 17 kommentarer og
1 løsning

Queries With Database 2007

Hi,
I have been working on Access database version 2007.. and have a doubt in getting a list of active records as well non active..
Can you suggest me a VBA code...
Avatar billede mugs Novice
07. juli 2008 - 17:18 #1
Hvad markerer "active records" fra "non active records"?
Avatar billede terry Ekspert
07. juli 2008 - 19:28 #2
Hi salim..
If you have a Yes/No field which indicates if a record is active or not you can make an SQL query somethng like this

SELECT *
FROM YourTable
WHERE SomeField=True
Avatar billede terry Ekspert
07. juli 2008 - 19:30 #3
That give syou the active (true) records, and the non active

SELECT *
FROM YourTable
WHERE NOT SomeField=True
Avatar billede salimbharuchi Nybegynder
08. juli 2008 - 10:21 #4
Thanks alot terry for your reply but though...i did not get it ...Well i have a called student_details which contains fields like Cpr, first name, last name...and so on...but i am using a ADODB connection...which links to another Db...Basically DB is designed to suite the need for a Uddanelse Center...in which students comes daily to the center types their CPR and press the button Chekin...the other DB is on the server which contains the Students_Checin Table...in which i will get a time stamp of users login...with date...but let us say some day particular student is absent...then how can i get a report for students who where no checkedin...
Best Regards,
Salim...
Avatar billede terry Ekspert
08. juli 2008 - 12:49 #5
Hi Salim
If both tables were linked into your Access database then you would be able to make a query which joins both tables. This would allow you to find records in student_details which dont have a matching record in the Students_Checin Table (for specific date).

If you cant make make a query which does this, because of your setup then you could maybe make a TEMP (local) table which reads all of the records from tudents_Checin Table into the TEMP table. Thne you couls make the SQL query you need.
Avatar billede terry Ekspert
15. juli 2008 - 08:39 #6
Hows it going Salim, do you need mre help?
Avatar billede salimbharuchi Nybegynder
15. juli 2008 - 10:01 #7
Well terry i am stuck at one stage...
i will send you my database itself... can you gimme your email ?
i guess its difficult like this to understand...
Avatar billede terry Ekspert
15. juli 2008 - 10:09 #8
ekspertenATsanthell.dk
AT = @
and an explanation as to where your having problems please
Avatar billede salimbharuchi Nybegynder
15. juli 2008 - 13:01 #9
Thanks...but are you going to charge ? or for free?
Avatar billede terry Ekspert
15. juli 2008 - 13:09 #10
;o)
Its a question you have placed in eksperten so its free but if you want other work done then you can contact me through my email.
Avatar billede terry Ekspert
15. juli 2008 - 19:36 #11
Maybe my explanation could be better.

If you send me your dB I will try and find a solution to this question for free. If you need help with other problems then you can contact me through my email where I can give a quote. Or you can place another question on eksperten and see if you can get help (for free).
Hope that helps
Avatar billede salimbharuchi Nybegynder
16. juli 2008 - 10:48 #12
Hey Terry..
Hope you received my DB...
If any questions better mail me....
Waiting for the solution....
Thanks for the Help...
Avatar billede salimbharuchi Nybegynder
26. juli 2008 - 19:40 #13
Terry Can you help me..i dont know how to close the question...
Avatar billede mugs Novice
26. juli 2008 - 20:06 #14
Du skal markere terry's i boksen nede til venstre og dereftr trykke på accepter.
Avatar billede mugs Novice
26. juli 2008 - 20:06 #15
Avatar billede terry Ekspert
27. juli 2008 - 10:29 #16
I'll need to place a new answer first.
Avatar billede salimbharuchi Nybegynder
27. juli 2008 - 11:04 #17
isit closed now?
Avatar billede terry Ekspert
27. juli 2008 - 20:26 #18
Yes it sclose dnow, thanks salim.
Do yo still need help on the last mail you sent me concerning prices?
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