P
Penstar
I get a runtime error 13 type mismatch, when I run the following:
VarExisting = DCount("[event_date]", "event", "[event_date]= " &
Format(Me.event_date, "\#mm\/dd\/yyyy#") And "[event_sessionid]= " &
Me.event_sessionid)
If however I count them separately, they work individually, i.e
varEvDate = DCount("[event_date]", "event", "[event_date]= " &
Format(Me.event_date, "\#mm\/dd\/yyyy#"))
varSession = DCount("[event_sessionID]", "event", "[event_sessionid]= " &
Me.event_sessionid)
I need to do count where both [event_date]=me.event_date And
[Event_sessionID]=me.event_sessionid
Any suggestions would be appreciated
Penny
VarExisting = DCount("[event_date]", "event", "[event_date]= " &
Format(Me.event_date, "\#mm\/dd\/yyyy#") And "[event_sessionid]= " &
Me.event_sessionid)
If however I count them separately, they work individually, i.e
varEvDate = DCount("[event_date]", "event", "[event_date]= " &
Format(Me.event_date, "\#mm\/dd\/yyyy#"))
varSession = DCount("[event_sessionID]", "event", "[event_sessionid]= " &
Me.event_sessionid)
I need to do count where both [event_date]=me.event_date And
[Event_sessionID]=me.event_sessionid
Any suggestions would be appreciated
Penny