On 22 jan, 22:04, Robin <Ro...@discussions.microsoft.com> wrote:
> Hello, *I need some help with what's probably obvious.
>
> for variables intRFIo As Integer and stRFIs As String
>
> This works:
> intRFIo = DCount("*", "ClientEngagementNotes", "[ClientID]= '" & Me.ClientID
> & _
> * * * * "' AND [EngagementID] = '" & Me.EngagementID & _
> * * * * "' AND [EngagementYr] = '" & Me.EngagementYr & _
> * * * * "' AND [RFI]= " & True & _
> * * * * " AND IsNull([RFIRec])")
> This does not work:
> stRFIs = DLookup("StaffID", "ClientEngagementNotes", "[ClientID]= '" &
> Me.ClientID & _
> * * * * * * "' AND [EngagementID] = '" & Me.EngagementID & _
> * * * * * * "' AND [EngagementYr] = '" & Me.EngagementYr & _
> * * * * * * "' AND [RFI]= " & True & _
> * * * * * * " AND IsNull([RFIRec])")
>
> Can someone tell me what's wrong?
>
> Thank you,
> Robin
What does "does not work" means in your case?
Groeten,
Peter
http://access.xps350.com