G
Guest
yea basic what the title says running a query by month. Currently im useing
the between criteria
the between criteria
The Uke said:I have a table that has a date column in it MM/DD/YYYY I want to know if
there is an ez way so that when the Query is run I can just enter the
month
and year
currently the query says
Between [Enter Start Date of Quarter or Month: (mm/dd/yyyy) ]
And [Enter Finish Date: (mm/dd/yyyy) ]
and i have to enter the begining of the month and the end of the month i
wanted to know if there is an more efficient way to do it
Jeff Boyce said:We're not there, we can't see your data, nor your query, nor the desired
end
result.
More info, please...
Regards
Jeff Boyce
Microsoft Office/Access MVP
Jeff Boyce said:If you want to be prompted for the month (e.g., 1-12), use the Month()
function in your query to calculate the month of the date field. Note,
however, that each year has a month = 7, so you'll also need to prompt for
the year (e.g., 2005) -- use the Year() function to calculate the year of
the date field.
When you're done with these, does it actually save keystrokes/time over
entering exact dates?
NOTE: if you are working with dates falling within the current year, you'll
only need to enter "m/d" and <enter> -- Access will assume you mean the
current year.
Regards
Jeff Boyce
Microsoft Office/Access MVP
The Uke said:I have a table that has a date column in it MM/DD/YYYY I want to know if
there is an ez way so that when the Query is run I can just enter the
month
and year
currently the query says
Between [Enter Start Date of Quarter or Month: (mm/dd/yyyy) ]
And [Enter Finish Date: (mm/dd/yyyy) ]
and i have to enter the begining of the month and the end of the month i
wanted to know if there is an more efficient way to do it
Jeff Boyce said:We're not there, we can't see your data, nor your query, nor the desired
end
result.
More info, please...
Regards
Jeff Boyce
Microsoft Office/Access MVP
yea basic what the title says running a query by month. Currently im
useing
the between criteria
The Uke said:thanks for the responce,
what would the correct santax before a single month
Jeff Boyce said:If you want to be prompted for the month (e.g., 1-12), use the Month()
function in your query to calculate the month of the date field. Note,
however, that each year has a month = 7, so you'll also need to prompt
for
the year (e.g., 2005) -- use the Year() function to calculate the year of
the date field.
When you're done with these, does it actually save keystrokes/time over
entering exact dates?
NOTE: if you are working with dates falling within the current year,
you'll
only need to enter "m/d" and <enter> -- Access will assume you mean the
current year.
Regards
Jeff Boyce
Microsoft Office/Access MVP
The Uke said:I have a table that has a date column in it MM/DD/YYYY I want to know if
there is an ez way so that when the Query is run I can just enter the
month
and year
currently the query says
Between [Enter Start Date of Quarter or Month: (mm/dd/yyyy) ]
And [Enter Finish Date: (mm/dd/yyyy) ]
and i have to enter the begining of the month and the end of the month
i
wanted to know if there is an more efficient way to do it
:
We're not there, we can't see your data, nor your query, nor the
desired
end
result.
More info, please...
Regards
Jeff Boyce
Microsoft Office/Access MVP
yea basic what the title says running a query by month. Currently im
useing
the between criteria
Jeff Boyce said:"correct syntax" where? Are you using the Month() and Year() functions?
Check Access HELP for correct syntax on these functions.
Regards
Jeff Boyce
Microsoft Office/Access MVP
The Uke said:thanks for the responce,
what would the correct santax before a single month
Jeff Boyce said:If you want to be prompted for the month (e.g., 1-12), use the Month()
function in your query to calculate the month of the date field. Note,
however, that each year has a month = 7, so you'll also need to prompt
for
the year (e.g., 2005) -- use the Year() function to calculate the year of
the date field.
When you're done with these, does it actually save keystrokes/time over
entering exact dates?
NOTE: if you are working with dates falling within the current year,
you'll
only need to enter "m/d" and <enter> -- Access will assume you mean the
current year.
Regards
Jeff Boyce
Microsoft Office/Access MVP
I have a table that has a date column in it MM/DD/YYYY I want to know if
there is an ez way so that when the Query is run I can just enter the
month
and year
currently the query says
Between [Enter Start Date of Quarter or Month: (mm/dd/yyyy) ]
And [Enter Finish Date: (mm/dd/yyyy) ]
and i have to enter the begining of the month and the end of the month
i
wanted to know if there is an more efficient way to do it
:
We're not there, we can't see your data, nor your query, nor the
desired
end
result.
More info, please...
Regards
Jeff Boyce
Microsoft Office/Access MVP
yea basic what the title says running a query by month. Currently im
useing
the between criteria
I have a table that has a date column in it MM/DD/YYYY I want to know if
there is an ez way so that when the Query is run I can just enter the month
and year
currently the query says
Between [Enter Start Date of Quarter or Month: (mm/dd/yyyy) ]
And [Enter Finish Date: (mm/dd/yyyy) ]
Try
= DateSerial([Enter year:], [Enter month number:], 1) AND < DateSerial([Enter year:], [Enter month number:] + 1, 1)
The Uke said:Currently while useing the Between () and () when i run the query alittle
prompt opens and asks be more the date span of which i want to limit my
query. when i change it to Month() in the criteria field and run the query
it
says " the expression you entered has a function containing the wrong
number
of arguments". Which I will assume that im missing something.
What i want to know is if there is a similer way to have a prompt come up
when i run the query and just enter 06/2007 or 06/07 and it would work
Jeff Boyce said:"correct syntax" where? Are you using the Month() and Year() functions?
Check Access HELP for correct syntax on these functions.
Regards
Jeff Boyce
Microsoft Office/Access MVP
The Uke said:thanks for the responce,
what would the correct santax before a single month
:
If you want to be prompted for the month (e.g., 1-12), use the Month()
function in your query to calculate the month of the date field.
Note,
however, that each year has a month = 7, so you'll also need to prompt
for
the year (e.g., 2005) -- use the Year() function to calculate the year
of
the date field.
When you're done with these, does it actually save keystrokes/time
over
entering exact dates?
NOTE: if you are working with dates falling within the current year,
you'll
only need to enter "m/d" and <enter> -- Access will assume you mean
the
current year.
Regards
Jeff Boyce
Microsoft Office/Access MVP
I have a table that has a date column in it MM/DD/YYYY I want to know
if
there is an ez way so that when the Query is run I can just enter
the
month
and year
currently the query says
Between [Enter Start Date of Quarter or Month: (mm/dd/yyyy) ]
And [Enter Finish Date: (mm/dd/yyyy) ]
and i have to enter the begining of the month and the end of the
month
i
wanted to know if there is an more efficient way to do it
:
We're not there, we can't see your data, nor your query, nor the
desired
end
result.
More info, please...
Regards
Jeff Boyce
Microsoft Office/Access MVP
yea basic what the title says running a query by month. Currently
im
useing
the between criteria