Hi I have been looking all over the net for a solution to this problem I hope someone can help me.I am a complete novice at using Access and have learned most of what little I know by trial and error and from the net.
I have created a database of electrical equipment that has to be tested every 12 months.
I created a form using the wizard that contains all the fields that need entering, including 'date tested' and date of 'next test'. To get the form to automaticaly fill in the date of next test field which is always 12 months from the Date tested field, I used this formula? =DateAdd("yyyy",1,[Pat Test Database 2011.Date tested])in the 'Date of next test' box in the forms design view.
I also created a couple of queries, one that checks for if the item has been scrapped (it looks for the word Scrapped in the 'Comments' field and one that checks if the 'Date of next test' is overdue, using Date() or<Date() as the query in the 'Date of next test' field.
I started to populate the Database from the paper records using the form, after I had entered a few I ran the overdue date query this came up with far fewer records than it should from records entered.
When I checked the table I could see that the 'Date of next test' wasn't filled in on most of the records, so that when I run the query it can not work on those records.
If I go back to the Form and use the arrows to scroll through all records I have the calculated date in the 'Date of next test' box. I have searched for answers on this and found nothing I understood. Please bear in mind as a complete novice at this, SQL and VBA are a complete mystery to me.
I would be grateful if anyone can advise me on what I need to do to solve this problem
Frank
p.s. I forgot to say that whilst a few entries were ok at the start now all 'Date of next test' entries on the form do not update the table I am having to go into the table and enter them manually which defeats the object somewhat