Results 1 to 8 of 8
  1. #1

    Default Help with MS Access 2003


    Mga Masters, ngayo na sad ko tabang nnu. Naa ko gi himo na query sa MS Access na dli mo gana.

    Background:

    Naa ko gi himo na query na mo display unta sa pinaka latest na data na gi enter sa user. ako gi buhat ky naa ko Field na ako gi name ug DOU (Date/Time of Updation) which is the last date/time na gi update nya ang data. so ako gibuhat kay ako gi Max ang DOU para mo display cya sa latest na update. ang blema karon ky naay ubang entry na dli nya ma filter so ang nahitabo ky double entry cya ana na date, although the rest of the field ky pareho ra tanan. unsay angay nako buhaton mga master?

  2. #2

    Default Re: Help with MS Access 2003

    bai, pwede ka maka buhat ug field unya nganlan nimo ug 'id' , then kada entry mo increment ang id para dili ka mag depend sa date/time?

    silbi :

    id=entry
    1=asdfadfa
    2=asdfdghdffdhfghg
    3=asdfgavasda

    unya ang latest nimo ang pinaka end

  3. #3

    Default Re: Help with MS Access 2003

    y not order by DOU Desc dayun get the top 1 data?
    so ang latest jud ni iya i.return sa query.

  4. #4

    Default Re: Help with MS Access 2003

    salamat sa mga reply mga master. gi tuyo ni namo na query ky dli man jd malikayan na mag update cla ana na data every now and then. example ky kung na sayop ug input ang user then gi update nya to na input, so dapat kung unsa to pinaka latest na input, mao ra ako ipakita sa output. dli dapat cya 2 or more entry, isa ra dapat which is the latest entry hence mao gi gamit nako ang DOU.

  5. #5

    Default Re: Help with MS Access 2003

    bro, naa ni program nga mo serve as front-end to user?

    ...suggest lng nko ni...
    y not edit your program nlng, if ever mo change ang user sa data niya, you'll just simply edit the DOU in the database. so the next time i-display nimu ang records, usa ra ka row or updated record na sa user ang nkadisplay...

    Or if wla ni front-end program, MS Access alone lang ni,
    I-sort lang nimu ang date unya ang first or last ang imo i-display depende sa imo sorting ug ascending/descending bah..

  6. #6

    Default Re: Help with MS Access 2003

    bro, why not make it a transactional table..

    meaning, every update niya sa data mag.insert ka sa table then naay kay field nga transaction_date = db date (not editable).

    so example.

    table structure:
    id, data_id, data1, data2, data3, transacted_by, transaction_date

    data:
    1, 1, "test 1", "test 2", "test 3", "user01", "april 23, 2012 11:40 AM"
    2, 1, "test 4", "test 5", "test 6", "user01", "april 23, 2012 12:40 PM"

    then sa imong query kay
    where transaction_date = (select max(transaction_date) where data_id = p_id);

    hope makatabang ni..

  7. #7

    Default Re: Help with MS Access 2003

    Musingit ko gamay. Why not i-store nimo ang imong fields per row like:

    Code:
    FieldName  | FieldValue | DOU
    ---------------+--------------+------------
    field1           | value1       | 2012-04-23 11:40:00
    field1           | newvalue2 | 2012-04-23 11:41:00
    Through this ma filter nimo ang updates sa usa ka field and ma display nimo unsa ang latest input. Then pwede ka mag create ug view that would have this:

    Code:
    field1
    --------------------
    newvalue2

  8. #8

    Default Re: Help with MS Access 2003

    Quote Originally Posted by moodsey211 View Post
    Musingit ko gamay. Why not i-store nimo ang imong fields per row like:

    Code:
    FieldName  | FieldValue | DOU
    ---------------+--------------+------------
    field1           | value1       | 2012-04-23 11:40:00
    field1           | newvalue2 | 2012-04-23 11:41:00
    Through this ma filter nimo ang updates sa usa ka field and ma display nimo unsa ang latest input. Then pwede ka mag create ug view that would have this:

    Code:
    field1
    --------------------
    newvalue2

    this is what you called transactional tables..

  9.    Advertisement

Similar Threads

 
  1. Need Help with Random Access File
    By akocdiego in forum Programming
    Replies: 8
    Last Post: 10-23-2012, 10:57 PM
  2. Help using MS Access on an inventory program
    By jinkazjinkaz in forum Programming
    Replies: 25
    Last Post: 09-11-2010, 09:37 PM
  3. Need Help making db & UI with MS Access ONLY
    By yarniwre in forum Programming
    Replies: 1
    Last Post: 10-20-2009, 12:24 PM
  4. MS outlook 2003 problem. need help.
    By doki in forum Software & Games (Old)
    Replies: 7
    Last Post: 01-04-2007, 06:01 PM
  5. help ms access
    By hybrid_X in forum Programming
    Replies: 1
    Last Post: 07-09-2006, 02:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top