TextBox dcount function

I

Ian

I'm using the following controlsource in textbox68 to return a count from a
query to a form.

=(DCount("apptID","qry_cntactappt","clientid=forms.frm_client.clientid"))

Then OnClose of the form
If Me.Text68 = 0 Then
MsgBox ("text")
.........

If also tried = Is Null, Is Null etc.... but when the value is zero in the
dcount the IfThenElse statement won't recognize it.

any suggestions?
 
R

ruralguy via AccessMonster.com

How about: If Me.Text68 = "0" Then

I'm using the following controlsource in textbox68 to return a count from a
query to a form.

=(DCount("apptID","qry_cntactappt","clientid=forms.frm_client.clientid"))

Then OnClose of the form
If Me.Text68 = 0 Then
MsgBox ("text")
........

If also tried = Is Null, Is Null etc.... but when the value is zero in the
dcount the IfThenElse statement won't recognize it.

any suggestions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Dcount Hell -- going to first record on close 1
Dcount -Date Criteria - Won´t find it - 0
dcount 1
DCount 2
Still struggling with DCount 9
DCount problem redux 4
Dcount Problem 3
DCOUNT unique records 2

Top