Results 1 to 3 of 3
  1. #1

    Default MS Access and VBA question [ADO]


    mga master, ask lang unta ko kung unsaon nako pag compare ang first and second record in MS Access using excel VBA (ADO).

    example:

    First Record: 200
    Second Record: 230

    ako nahan mahitabo ky

    If First Record = Second Record then
    .....Code
    End if

    ako blema lang siguro ky wala ko kahibaw unsaon pag increment sa record number using VBA.

    dli man mo work kung First Record = First Record + 1 ky ang value man sa first record iya e-increment and not the record number.

    tabang mga master....

  2. #2
    VBA here,

    Dli kayu ko ka kuha sa imong problem, bali variable imo pasabot? Diba naa namn auto-increment na variable
    kana diay imong gamiton?

    Or kani

    Add a field isSave = [Yes/No]

    btn_save:
    Me.Refresh

    Me.isSave = True
    Me.RecordNumber = dmax("RecordNumber","yourTable","isSave=True") + 1

  3. #3
    murag maayo ni i store nimo ug array ang records

  4.    Advertisement

Similar Threads

 
  1. MS ACCESS and MySQL
    By budzprog in forum Programming
    Replies: 4
    Last Post: 06-01-2011, 05:14 PM
  2. pls help ... some basic questions of MS Access
    By yarniwre in forum Programming
    Replies: 2
    Last Post: 09-09-2009, 04:49 PM
  3. Are you using MS Access?
    By cmontoya in forum Programming
    Replies: 18
    Last Post: 09-05-2006, 10:15 AM
  4. help ms access
    By hybrid_X in forum Programming
    Replies: 1
    Last Post: 07-09-2006, 02:58 PM
  5. Wireless Accesspoint and Switch Questions
    By nutjugger in forum Networking & Internet
    Replies: 1
    Last Post: 05-07-2006, 10:48 AM

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