L
LMB
Hi Everyone,
Need a report or query to show all employees, their credentials and when
their credentials expire. If an employee got credentialed before July 1,
2002, their credentials do not expire. Some employees have some credentials
before this date and also have some after this date. Some employees have
all credentials before this date and then some have all credentials after
this date.
I was wondering if there is a way to add an if/then statement to a query to
return a future date? I am using Access 2000. Originally I was going to
just enter in expiration dates for credential expiration dates and for the
employees who do not have expiration dates because they were credentialed
before July 1, 2002 I was going to use the year 1/1/2060. Employees who
don't have a particular credential will have a blank expiration date field.
Even though the users swear that they will not need to have on file when the
individual was credentialed, I think they may at some time want to see this.
When I started this database, they said they would not need to have
credentials in there either since license is what is required to work in our
state and not credentials. I wanted to calculate the expiration dates in a
query. I am making a crosstab query which works great if I only have an
expiration date and use the tables for the data but I don't know how to
begin this if I calculate the date. Heck, I'm looking up how to calculate
the expiration date at this moment.
1. Will a calculated field work in a crosstab query or do I need to make a
regular query first?
2. What would my calculation be if I wanted the date 1/1/2060 returned for
any credentials created before July 1, 2002 or can this even be done because
dates after this will be +5 years from credential completion date?
Here are my tables for what I think I should do
tblCredentials
CredentialsID (PK)
CredentialsType (fk)
tblEmpID (fk from my tblEmployee)
CredentialCompletionDate
tblCredentialTypes
CredentialTypesID
I have a crosstab query working but this is only using the
CredentialExpirationDate in it and just entering the future date for those
people who are "grandfathered". I was just trying to do it like a "real
developer". would and use a calculated field based on the completion date
for my data. So, if there is going to be a lot of complicated code to get
this to work, I'll just keep it the way it is.
Thanks,
Linda
Need a report or query to show all employees, their credentials and when
their credentials expire. If an employee got credentialed before July 1,
2002, their credentials do not expire. Some employees have some credentials
before this date and also have some after this date. Some employees have
all credentials before this date and then some have all credentials after
this date.
I was wondering if there is a way to add an if/then statement to a query to
return a future date? I am using Access 2000. Originally I was going to
just enter in expiration dates for credential expiration dates and for the
employees who do not have expiration dates because they were credentialed
before July 1, 2002 I was going to use the year 1/1/2060. Employees who
don't have a particular credential will have a blank expiration date field.
Even though the users swear that they will not need to have on file when the
individual was credentialed, I think they may at some time want to see this.
When I started this database, they said they would not need to have
credentials in there either since license is what is required to work in our
state and not credentials. I wanted to calculate the expiration dates in a
query. I am making a crosstab query which works great if I only have an
expiration date and use the tables for the data but I don't know how to
begin this if I calculate the date. Heck, I'm looking up how to calculate
the expiration date at this moment.
1. Will a calculated field work in a crosstab query or do I need to make a
regular query first?
2. What would my calculation be if I wanted the date 1/1/2060 returned for
any credentials created before July 1, 2002 or can this even be done because
dates after this will be +5 years from credential completion date?
Here are my tables for what I think I should do
tblCredentials
CredentialsID (PK)
CredentialsType (fk)
tblEmpID (fk from my tblEmployee)
CredentialCompletionDate
tblCredentialTypes
CredentialTypesID
I have a crosstab query working but this is only using the
CredentialExpirationDate in it and just entering the future date for those
people who are "grandfathered". I was just trying to do it like a "real
developer". would and use a calculated field based on the completion date
for my data. So, if there is going to be a lot of complicated code to get
this to work, I'll just keep it the way it is.
Thanks,
Linda