Hey guys,
I'm creating a database for a vaccination clinic in a slum and have never used access before so am a little confused about the Nz and IIF functions.
So I have a table called Table Children and in it I have a Date of Birth field and a Age at the time of first joining the program field. Then I have various vaccinations (tick boxes) and date field next to each. So say P1 (yes/no), Date of P1, P2 (yes/no), Date of P2 etc.
The thing is parents don't know their child's date of birth a lot of the time so they'll give the child's age which is then entered in the field 'Age at the time of first joining the program'
To be calculate a child's age at each vaccine I need date of births.
I want to create a query that basically copies Date of Birth where it is given and where the Date of Birth field is null it subtracts the child's age (retrieved from Age at the time of first joining the program) from the Date of entry (i.e. the day the child joined the program) – i'm assuming that will give me the DOB.
Any help would be appreciated!
Thanks guys!