3 maanden

G

Guest

Hallo,

Ik heb een huidige datum en een datum in een tabel staan. Wat moet ik doen
om ervoor te zorgen dat alleen de records worden weergegeven waarvan het
verschil tussen de datum in de tabel en de huidige datum groter is dan 3
maanden????

Misschien is het wel heel makkelijk maar ik zou niet weten hoe ik het moet
doen....

Groetjes,
Mike
 
G

Guest

In English: How to show only records which are three months from date in
entered table.

Hi Mike,

Maak een query en geef binnen de query bij het datumveld op bij criteria:

=Date()+90
Hierbij ga ik er van uit dat 90 dagen drie maanden is.

Houd er rekening mee dat dit een engelstalige newsgroep is en je kans op
antwoord dus groter is als je je vraag in het engels stelt.
 
L

Larry Linson

In the criteria line of the date Field (which should not be named Date,
because Date is a reserved word and may be confusing), use this to get Dates
today and up to 90 days hence

Betweeen Date() And DateAdd("d", 90, Date())

or

Between Date() and DateAdd("m", 3, Date)

for three months, no matter how many days are in the months.

Larry Linson
Microsoft Access MVP
 
G

Guest

Thanks for replying as well Larry. I also stated that mike has to post his
questions in english to increase the possibility for an answer to his
questions he might have.
 
G

Guest

Larry,

shouldn't your second option end with two brackets as well? The first option
uses date() and the second one doesn't. It might be my confusion here..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

filmke eh 1
Garantie nadeel bij webshops 9
KruistabelQuery als bron voor rapport(en)? 1
hyperlink 1
vraagje 6
titels blokkeren 1
berekenen in een nog niet bekend bereik 1
een contact brief 1

Top