Hello, I am using Access 2013 and would like some assistance with the DCOUNT function, please.
I've created a very simple music collection database, with two tables:
Album
Album ID
Album Name
Artist ID
Artist
Artist ID
DVD
Artist Last Name
Artist First Name
Artist Full Name
The relationship is joined via the Artist ID fields.
The Artist table comprises the Main form, and there is a continuous subform created from the Album table.
I have not created any queries for this database…not yet, at least.
I want a text box in the Main form that displays the total number of albums in the collection.
I've created such a text box with the following DCOUNT formula:
=DCount("[Album ID]","Album")
Works properly, except for one thing: It does not update in real time. By that, I mean whenever I enter in a new album in the subform, I would like the DCOUNT text box to update immediately, and show the updated count.
As of this writing, I am not sure if this is possible, so I am requesting help to find out if it can be done.
In order for the DCOUNT value to update, I have to close the form and reopen it.
Have I written the DCOUNT formula incorrectly?
Is it possible to have the DCOUNT text box update in real time? If so, what must I change? Do I need to use a different function other than DCOUNT to get what I want?
Would this work better with a query?
Thank you for your help. TH