I have two tables with the necessary fields in bullets:
ResourceAllocation
- ID (Primary Key)
- Resource Start Date
- Resource End Date
- Percent Utilization
tblRA2012
- ID (Primary Key)
- ResourceAlloc (tied to ResourceAllocation Primary Key)
- Weekx (x = 1-52 for a total of 52 fields)
How the data entry works is that a person will fill in the [Resource Start Date] and [Resource End Date] for a given resource allocation. For various reasons, I need that represented in individual weeks as well. In code, it would be something similar to:
Code:
Week 1:
If ResourceAllocation![Resource Start Date]<#1/1/2012# AND ResourceAllocation![Resource End Date]>#1/7/2012# Then
tblRA2012!Week1.value = ResourceAllocation![Percent Utilization].value
End If
My question is, can I do that conditional type of stuff in a query? I don't know enough of about SQL yet to put it all together, so I was wondering if anyone could help.