Results 1 to 3 of 3

Thread: another SQL syntax for AccessDB in VB

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2002
    Location
    Birmingham
    Posts
    2

    another SQL syntax for AccessDB in VB

    just need to know that if you have a table using VISdata as follows

    Project Name
    Initial Budget
    Current Expenditure
    Start Date
    End Date

    how do you show all the projects CURRENTLY being worked on using the start date and the end date??

    data1.recordsource = "SELECT * FROM StaffDetails WHERE..................????????

    Please help....just new to the world of databases in VB.... thanks!

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    My suggestion would be to add a field to your table called Status. Appropriate codes could be entered into this field which would designate the current state of each project.

    That would make finding what you needed to find much more simple.

  3. #3
    agent_008
    Guest
    ok... Let's try that SQL string:
    SELECT * FROM StaffDetails WHERE something (your record) BETWEEN #Start Date# and #END DATE#

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