Arkienpa,
For us to be most helpful, you should post as much info about your DB as
possible, like table/query names (that will be involved...we don't need
every single table), field names in the tables involved, and maybe even data
types of those fields.
Will this new query be based off of a table or another query?
If you are familiar with designing queries, then in this new query, add the
fields that you want returned and then try the following as criteria for
your expiration date field:
=Date() and <= DateSerial(Year([Name of your expiration date
field]),Month([Name of your expiration date field])+1,Day([Name of your
expiration date field]))
Be sure to change "[Name of your expiration date field]" to the name of your
field, but I would leave the square brackets ([]) in just to be safe.
Depending on your field names, they might be requiered.
That will return records with a date between today's date and the same day
of the month in next month.
I have not tested this, I just typed this in to my reply from memory, so
there is always a potential for error. If for some reason Access doesn't
like "Date()", then change it to "Today()", but I think Date() is correct.
FYI, SQL is the language/code that Access uses to execute queries. When you
design a query, Access builds the SQL statement behind the scenes. When you
execute the query, it is the actual SQL statement that is executed. The
query design view is just a GUI for building SQL statements so it is easier
for people who don't know SQL to design queries. After you design a query,
you can look at the SQL statement that Access came up with. In order to do
that, in Query Design or Datasheet view, click the View menu > SQL View.
That will display the SQL statement Access created. You might try some
simple queries and look at the SQL statement just to see what is going on,
and you might learn something in the process. Gradually make the queries
more complicated. Many times those of us here helping will ask you to post
your SQL statement. Just switch to the SQL View and copy everything you see
and paste it into your post/response. Also many times we will put a SQL
statement in our response. Same thing...just copy the statement from our
response and paste it into the SQL View. After pasting, you can switch back
to Design View to see how the query was designed.
Please post back with more information if this did not work for you or you
don't understand what is going on.
HTH,
Conan