I have a small problem, probably the solution will again be simple, but I can't get it sorted.
I have created a table with some 20 fields in it, of which 1 is called maintenance type, a combo box and a second field being the date a specific type type has been performed. This results in a bunch of records, let's say 4 dates with type A, 5 dates with type B and 3 dates with type C.
I've created a query which selects the most recent records for each maintenance type. So far, so good, but now I have created a new form, a summary screen, where I want 3 fields, showing in the first field the date last A maintenance performed, field 2 showing last date B maintenance performed, and field 3 showing last date C maintenance performed. As new records are entered in the main table, these fields value will automatically change to the most recent one. It has to be a form, since this one is also the main form when opening the database and more functions are stored here.
I tried all kinds of things, created separate queries for the 3 types each with its date, but then I can only get 1 field working, corresponding with the query I base the form on. When I make an expression for the other field to get the data from the other query, it just shows #NAME?.
Thanks in advance for any help
Koen
I have created a table with some 20 fields in it, of which 1 is called maintenance type, a combo box and a second field being the date a specific type type has been performed. This results in a bunch of records, let's say 4 dates with type A, 5 dates with type B and 3 dates with type C.
I've created a query which selects the most recent records for each maintenance type. So far, so good, but now I have created a new form, a summary screen, where I want 3 fields, showing in the first field the date last A maintenance performed, field 2 showing last date B maintenance performed, and field 3 showing last date C maintenance performed. As new records are entered in the main table, these fields value will automatically change to the most recent one. It has to be a form, since this one is also the main form when opening the database and more functions are stored here.
I tried all kinds of things, created separate queries for the 3 types each with its date, but then I can only get 1 field working, corresponding with the query I base the form on. When I make an expression for the other field to get the data from the other query, it just shows #NAME?.
Thanks in advance for any help
Koen