Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

query

ResolvedVersion 2003

Jean has attended:
Access Introduction course

Query

how do I make a query to search for a record such as dates between 10/07/2010 and 31/10/2010?

RE: query

Hi Jean,

Thank you for your question.

In the criteria line of the query underneath the date field add the following:

Between 10/07/2010 and 31/10/2010

Then view the datasheet to see the results.

I hope this answers your question. If it does can you please mark it as complete.

Regards

Simon

RE: query

I'm afraid this isn't working - it's bringing up more dates than between 10/07/2010 and 31/10/2010, so I haven't marked it as resolved.

Best,
Jean

RE: query

Hi Jean,

Thank you for your response.

There could be two issues:

1. Are the dates in US format or UK format?
2. What is the format of the date ie. using slashes or dots or another format?

Regards

Simon

RE: query

Hi Jean,

I have just had another thought.

The data in that column may not be in date format as the criteria I gave you will work on dates.

It sounds like the data is being read as a text string.

Regards

Simon

Will be marked as resolved in 5 days

Notice: This is an automated message. Due to inactivity, this forum post will be marked as 'resolved' if there are no further responses in the next 5 days.

Thu 30 Dec 2010: Automatically marked as resolved.

Access tip:

Open A Combo Box Automatically

This is helpful if users need to enter large amounts of data. There are two ways to open ComboBoxes when they get the focus by using the tab keys.

When the ComboBox gets focus:

Press Alt + Down Arrow on the keyboard

For it to happen automatically, needs a bit of coding:

1. Add a combo box and a text box control to the form
2. Set the combo box's On Got Focus property to the following event procedure:

Private Sub ComboBoxName _GotFocus()

Me!ComboBoxName.Dropdown

End Sub


3. Open your form in Form View and use the TAB key to make sure it works.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.