Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6611325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:57:21+00:00 2026-05-25T19:57:21+00:00

I am working on ASP.net application with a MS Access database.I want to only

  • 0

I am working on ASP.net application with a MS Access database.I want to only display those list of entries whose DateTime value is greater than the present date and time.
I am having difficulty in comparing in SelectCommand, as to how to pass the datetime parameter.
My code is as follows:
`

        SelectCommand="SELECT `ID`, `eventname`, `description`, `venue`, `coordinator`, `time` FROM `upcoming` ORDER BY `time` WHERE (`time`>=?)" 
        UpdateCommand="UPDATE `upcoming` SET `eventname` = ?, `description` = ?, `venue` = ?, `coordinator` = ?, `time` = ? WHERE `ID` = ?">

        <UpdateParameters>
            <asp:Parameter Name="eventname" Type="String" />
            <asp:Parameter Name="description" Type="String" />
            <asp:Parameter Name="venue" Type="String" />
            <asp:Parameter Name="coordinator" Type="String" />
            <asp:Parameter Name="time" Type="DateTime" />
            <asp:Parameter Name="ID" Type="Int32" />
        </UpdateParameters>
        <SelectParameters>
            <asp:Parameter Name="time" Type="DateTime" PropertyName="Text" />
        </SelectParameters>
    </asp:AccessDataSource>`

Please tell me how can i pass the datetime value to the SelectParameters through this code.
Thank You for looking in it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:57:21+00:00Added an answer on May 25, 2026 at 7:57 pm

    you should use

    SELECT ID, eventname, description, venue, coordinator, [time] 
    FROM upcoming
    WHERE time > NOW()
    ORDER BY time
    

    NOW() is a builtin function in Access, so you don’t need to pass it to the query

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a ASP.NET application. I want to prevent the user from
I'm working on a web application project using ASP.NET MVC3 and database in SQL
As I am learning and working on Asp.Net MVC application, I want to know
When working with an ASP.NET application in Visual Studio 2008, my errors window often
When working with an ASP.Net application, when I rebuild the solution, I would like
I am working on a ASP.net application written in C# with Sql Server 2000
I'm working on an ASP.Net application and working to add some Ajax to it
I'm working on an asp.net application which uses Lucene.net I need to highlight the
I'm working on an ASP.NET application and I'm having difficulty in understanding why a
I am working on an ASP.NET application that make a lot of jquery and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.