Results 1 to 10 of 10

Thread: [RESOLVED] Select By Date

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2000
    Posts
    462

    Resolved [RESOLVED] Select By Date

    I got a database that has 492 records in it I am trying to extract from that database by employee Number, date. need to do this by day so I can display there time in a flexgrid.

    For a set period of time like 9-22-2008 to 10-5-2008

    I know there is a set method for doing this just wondering if I use recordset or another call.

    Would I have to call the select data needed By employee number and date.

    As it is I am scanning the entire database to get these records.



    Tryed Using This
    Code:
    Dim Acct$, Days$
    Set Record_Sets = New ADODB.Recordset
    Acct = RRR!Number
    Days$ = Trim(Str(D))
    Record_Sets.Open "SELECT Start_Day,Start_Time,Stop_Time,Hours,Min,Overtime from Pay_Hours WHERE Account = '" & Acct & "' ORDER BY " & Days & "'", Data_Connection(1), adOpenStatic, adLockReadOnly, adCmdText
    Last edited by si_the_geek; Oct 5th, 2008 at 02:28 PM.
    Don
    (OLD DOS Programmer)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width