I have a subform with the following 2 fields in the footer:
sumJan = Sum([January])
JanUtilPcnt =[sumJanuary]/DLookUp("January","BILLABLE_HRS","Year = " & Forms!sbfPlannedForecastData!Year)
These work fine in the subform but when I added the subform to a main form, I keep getting the #name? error for the JanUtilPcnt field.
I found some examples that recommended hiding the summary fields in the footer and then just referencing them by adding additional text boxes on the main form but I keep getting the #name? error for the second field that contains the DLookup.
This works...
JanSummary=
sbfPlannedForecastedData.Form!sumJanuary
This doesn't work...
JanUtilPercent=
sbfPlannedForecastedData.Form!JanUtilPcnt
Any hints on how to correct this?
Thanks!
sumJan = Sum([January])
JanUtilPcnt =[sumJanuary]/DLookUp("January","BILLABLE_HRS","Year = " & Forms!sbfPlannedForecastData!Year)
These work fine in the subform but when I added the subform to a main form, I keep getting the #name? error for the JanUtilPcnt field.
I found some examples that recommended hiding the summary fields in the footer and then just referencing them by adding additional text boxes on the main form but I keep getting the #name? error for the second field that contains the DLookup.
This works...
JanSummary=
sbfPlannedForecastedData.Form!sumJanuary
This doesn't work...
JanUtilPercent=
sbfPlannedForecastedData.Form!JanUtilPcnt
Any hints on how to correct this?
Thanks!