Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with code

Status
Not open for further replies.

cwbviper

Technical User
Oct 22, 2002
101
GB
Hi there,
I am looking to write some code which will look at a date in a table. When the current date is 30days before the date stored in the table a form will be displayed showing the corresponding record. I am a complete novice when it comes to writing access code so any help would be much appreciated.

Thanks
 
Why don't you write a query based on your table and specify the data you want retrieving in the criteria part of the date field?

Then you could build your form on your query...
 
DateDiff function works for this very weel. I use it to calculate dates in the past.

Gerald
 
Thanks for the help HighLightUK and geaker. Managed to find a solution on UtterAccess and the problem is sorted now, thanks anyway though.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top