G
Greg
what's wrong with the syntax of this:
=DCount("*","tblcontactdata","[date] Between #" & [txtboxstartdate] & "# And
#" & [txtboxenddate] & "#" &
IIf(IsNull(Forms!querybuilder!cboxupsource)=True,""," And [upsource]=" &
Chr(34) & Forms!formquerybuilder!cboxupsource & Chr(34)) &
IIf(IsNull(Forms!querybuilder!cboxdepartment)=True,""," And [department]=" &
Chr(34) & Forms!formquerybuilder!cboxdepartment & Chr(34)))
formquerybuilder is a form that creates the report that this dcount is a
part of. tblcontactdata is not the recordsource of that report. upsource,
department are both text. date is a date format. i have been playing with
this for a while and now i've got it to the point where i get a name error.
any thoughts? thanks.
=DCount("*","tblcontactdata","[date] Between #" & [txtboxstartdate] & "# And
#" & [txtboxenddate] & "#" &
IIf(IsNull(Forms!querybuilder!cboxupsource)=True,""," And [upsource]=" &
Chr(34) & Forms!formquerybuilder!cboxupsource & Chr(34)) &
IIf(IsNull(Forms!querybuilder!cboxdepartment)=True,""," And [department]=" &
Chr(34) & Forms!formquerybuilder!cboxdepartment & Chr(34)))
formquerybuilder is a form that creates the report that this dcount is a
part of. tblcontactdata is not the recordsource of that report. upsource,
department are both text. date is a date format. i have been playing with
this for a while and now i've got it to the point where i get a name error.
any thoughts? thanks.