I have two tables:
1. tblEvent and tblWork.
2. The tblEvent table has two fields I would like to automatically populate frmWork form with using the criteria that ActivityID = 35 Or 36. The two fields are StartDate and EndDate.
3. If ActivityID = 35, enter EventDate as StartDate.
4. If ActivityID = 36, enter EventDate as EndDate.
I tried creating a query and it is not working. It gives me both dates twice.
That is:
Instead of:
Basically, in my frmWork form I do not want to have to re-enter the dates for this activity.
What am I doing wrong or should I be doing something else?
Thanks!
1. tblEvent and tblWork.
2. The tblEvent table has two fields I would like to automatically populate frmWork form with using the criteria that ActivityID = 35 Or 36. The two fields are StartDate and EndDate.
3. If ActivityID = 35, enter EventDate as StartDate.
4. If ActivityID = 36, enter EventDate as EndDate.
I tried creating a query and it is not working. It gives me both dates twice.
That is:
CompanyID StartDate EndDate
1 4/1/10 4/18/10
1 4/1/10 4/18/10
2 3/3/90 3/31/10
2 3/3/90 3/31/10
1 4/1/10 4/18/10
1 4/1/10 4/18/10
2 3/3/90 3/31/10
2 3/3/90 3/31/10
Instead of:
CompanyID StartDate EndDate
1 4/1/10 4/18/10
2 3/3/90 3/31/10
1 4/1/10 4/18/10
2 3/3/90 3/31/10
Basically, in my frmWork form I do not want to have to re-enter the dates for this activity.
What am I doing wrong or should I be doing something else?
Thanks!